I have a sprite whose numerous instances are on the scene at a particular point of time. Is it possible to make one particular instance pause on the screen for an instance. I know i have to do it with a thread wait (probably) but when i try to wait on a particular sprite instance, it pauses the whole scene for the time that i specified which is not what i want. Can someone help?
This is the code
if((_target.contains(P4X[5], P4Y[5])) || (_target.contains(P5X[4], P5Y[4]))){
removeSprite(_target);
}
I want to wait here for some time and then remove the sprite _target.
The two tools you will need are
And use as TimerHandler to reactivate the sprite when done.
These two tools should let you pause and unpause a sprite.