Hi,
Im working on a student project and I've come to a road block where i can either have an animation play infinitely or set some code where it would hide it self after reaching a certain frame.
The problem shows itself when trying to hide the animation. It hides before even playing.
If i remove the code to hide the animation the animation does play
if (dbSpriteHit(6,4))
{
dbSprite(7,dbSpriteX(4), dbSpriteY(4), 7);
dbHideSprite(6);
dbDeleteSprite(4);
excooldown = timer + 1000;
}
dbPlaySprite(7,1,14,60);
if(excooldown < timer)
{
dbHideSprite(7);
}