I was wondering if theres a possibility to add an event to the end of an animation of a spritesheet. i thought about and tried the complete method but i get only errors with it. is there a method for this?
Event at the last frame of an animation (SOLVED)
Ultima2876
(Ultima2876)
#2
Is the callback what you’re referring to? It can be used like so:
public function added(): void
{
var mySpritemap: Spritemap = new Spritemap(blah);
mySpritemap.callback = functionToCall;
}
private function functionToCall(): void
{
//gets called at the end of the animation
}
Ultima2876
(Ultima2876)
#4
This topic was automatically closed after 2 days. New replies are no longer allowed.