New answers tagged flash
At the moment, you seem to be changing only the view (what objects look like), rather than the model (what their state is). (I'm using the MVC terms.) How about this for a model: It's a grid of hotspots. Now, when the mouse is pressed, you could set the closest point on the grid to a true value. The percentage cleaned would then be the ratio of true ...
Check this out :http://stackoverflow.com/questions/20192775/box2d-frim-frame-rate-independent-movement/20283264#20283264 . Try using a filtered variable time step... if you can.
Top 50 recent answers are included