Hi. I have some problems with the animation.
It looks like that: The player press the button Use pepper_spray.
The animation pepper_spray appears for a 2 seconds and disappears.
I want to hide the character ‘recorder’ in the same moment when the pepper_spray dust animation will hide and show/play another animation of the ‘recorder’ walking away. But that second animation does not appear.
in your third event block you are subtracting 0 from the variable sprayActive instead of setting it to 0 (if there are only two states you could just make it a boolean variable).
Do you have a scene-timer called ‘Smoke1’? Obviously you have an object timer ‘Smoke1’ for the object pepper_spray but in your conditions a scene timer is checked for the 2 and 3 seconds.
And if both are the same for you (which is not working) then Zero is right that you should not delete the timer if you need a larger time value of the same timer for another event.
No no. I have a sprite with a character. When I press the button pepper_spray there appear a cloud animation. After 2 seconds of the cloud animation that character should disappear with the dust object. And in the place of this character should appear the same figure going out aside as after hitting. So that the player can see that he eliminated the opponent, the picture of the opponent disappears and at the same time his animation appears, in which he turns and goes away.
I am not sure i get it correctly so correct me if im wrong
You press some button
Can object changes its animation to spraying which includes cloud of dust (or can and dust are separate objects?)
After 2 secs can and dust disappear and enemy that was sprayed shows FOR EXAMPLE explosion animation then drops on the floor?
Yes, something like that. It is as if you had a ship and you press the button “bomb” and you see the animation of the explosion and when this animation stops, then the ship is slowly sinking. So, you have 3 elements: the sprite with the ship + the animation of the explosion + animation of the sinking ship. And I just want to make it that way.