Zeh Fernando wrote:
Just discovered this. I have a character moving across the screen at a very slow rate. His complete journey should be around 20 minutes, making every frame increment at 0.0256527777777778. However, adding this to _x isn't even registred, meaning adding 0.0256527777777778 to 0 (as _x) means _x will remain at 0. FOREVER. Adding 0.0256527777777778 to a temp variable, and setting _x to that variable rounded worked fine.
Any particular limitation of _x here that i wasnt aware of? Probably.

Yes. *Apparently* positions on the stage are based on twips, or 1/20th of a pixel, so the least it can actually move is 0.05 pixels. The kind of incrementation you're done - on movieclip properties - really should be done on a separate temp variable, as most of the properties seem to have similar precision limitations.
Well actually they MUST be done on a separate temp variable, because _x won't even register the change. I expected it to increment the property until it reached whatever threshold it required to make an actual visual change, but adding less than 0.05 won't work, period. Anyway no big deal :) I was just surprised i didn't know about it for so long.

- Andreas
_______________________________________________
[email protected]
To change your subscription options or search the archive:
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Brought to you by Fig Leaf Software
Premier Authorized Adobe Consulting and Training
http://www.figleaf.com
http://training.figleaf.com

Reply via email to