Quantcast
Channel: Active questions tagged game-maker - Stack Overflow
Viewing all articles
Browse latest Browse all 189

Destroy Sequence after being played in Game Maker

$
0
0

The Code plays an Attack Animation (Sequence) if the cooldown timer hits 0 and "Q" is pressed. The problem is, that I dont know how to delete the sequence after it has finished its animation of 12 Frames. If I use "Layer_destroy_sequence(seq)" right after playing it, it gets deleted before the 12 Frames are played. If I do not destroy it, the game starts lagging after just a few sequence plays. If I try to destroy it at the beginning of the script, I get an error message, saying, that it cannot destroy a sequence that doesnt exist.enter image description here


Viewing all articles
Browse latest Browse all 189

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>