Hello!
i have a sprite sheet with a ship and an explosion, i just loop the first frame so i can see the ship and then play 2 - 33 for the explosion.
The problem is artifacts after the explosion has played like part of the explosion stays on the screen, and sometimes it shows the ship.
i thought of checking then explosion was done and then remove it from screen but the property animating dosnt seems to work?
[lua] elseif (event.other.name == “ground”) then
spriteInstance:prepare(“explosion”)
spriteInstance:play(“explosion”)
if(spriteInstance.animating == false)then
print(“Ready”)
end[/lua]
here i check if the ship hits the ground and then it prepares and plays the explosion and then i check if the sprite sheet is animating if it isn’t it should print out ready in the console but it never does?
is this the wrong way?
and i don’t get why i get artifacts sometimes?
Kind regards [import]uid: 90942 topic_id: 16495 reply_id: 316495[/import]
[import]uid: 52491 topic_id: 16495 reply_id: 61609[/import]