on the last frame of your throwing animation add:
Thank you, that works great!
Another question: I want to spawn an item that the character is throwing, would I spawn this in the last frame of the animation as well, to make sure its spawning only when the last frame plays?
Currently in my onEnterFrame function I have:
And on the last frame of the throwing animation I have:
var throwItem = _root.attachMovie( "throwItem" , "throwItem" + _root.getNextHighestDepth(), _root.getNextHighestDepth() );
throwItem._x = _x;
throwItem._y = _y;
At first it worked and spawned the item right, but didn't spawn it only when the last frame is reached. After tinkering around a bit I ended up with the code above, however, it ALWAYS spawns in the upper left side, even though I gave it co ords to spawn at. What am I doing wrong?
please mark this thread as answered and start another thread for another issue.