Was looking for some information on how it would be possible to just simply scale up and down an image/entity? I want my zoom in process increase every update. For instance 4 is zoomed out 1 is fully zoomed in. Then the process goes 3.9 , 3.8, 3.7, 3.6,3.5, etc... this will then give the perception of getting closer. Any ideas on where I can start with this?
There is information about scaling scattered around the forum. This is a thread that should give you some working code scaling an image:
http://impactjs.com/forums/help/using-image-resize-scale-method
There is still issues with the built-in scaling methods because its using nearest neighbor and doesn't always perform they way you'd expect when you feed it different scale values.
You might be better off just working directly with the canvas context to do the scaling. Something like:
http://www.vectorlight.net/html5/tutorials/scaling_an_image.aspx
Guess my next question would be then if trying to manipulate objects directly will it be manipulating the anim sheet of the entity with the scaling? Looks like what you posted is on the right track though thanks.
I wrote a
scaling plugin some time ago that you might find useful.
Page 1 of 1
« first
« previous
next ›
last »