I am attempting to do an initial port of my first Processing sketch over to Processing,js and for some reason after I built in the Tween.lib Library the sketch does not load in the browser. Does anyone know why?
The image used in the sketch is available in another post:
For some reason the sketch fails to load in the browser. Tween.lib is in the same folder as the pde, init.js, processing,js, and html. I used the Export as Processing.js Plug-in and the code below:
/**
* Chasing the Almighty Dollar
*
* Dollar Bills are Displayed on the Canvas and the User Can try to Grab Them, But When They do The Bills Just Fly Away
When I originally wrote this in Actionscript 3.0 that line of code was rather beautiful, now I'm wondering how to accomplish the same with Processing. I've come a long way with my first Processing Sketch, but I am up against a wall with figuring out how to make the objects move based on mouse input. I would like the dollar bills to translate to a new position over time (tween) on mouseover. I have the Tween library, but I plan on porting this sketch over to processing.js so I'm guessing that option is out. Am I correct that processing.js can't rely on external libraries? I was thinking a for loop that updates translation over time would work, but how do I write a conditional that asks if each objects area is equal to mouse position then tween?
DIE FLASH! DIE!
Electronic Artist
Los Angeles, CA
/**
* Chasing the Almighty Dollar
*
* Dollar Bills are Displayed on the Canvas and the User Can try to Grab Them, But When They do The Bills Just Fly Away