Discuss Scratch

GTLePamplemousse
Scratcher
1 post

How to interrupt my animation loop?

Hey! So I'm making a fighting game and I'd like animations to stop instantly whenever something else is pressed but I don't know how to do it.
Your text to link here…

so this is what my script looks like and I COULD just check every time if any key is pressed but if I do that for every action and every character in the game it will get messy really fast. Anyone has a tip on that?
ChristianScratcher1
Scratcher
1000+ posts

How to interrupt my animation loop?

Send a broadcast

when [space v] key pressed
broadcast [Stop animations v]

Animation sprites:
when I receive [Stop animations v]
stop [other scripts in sprite v]

Powered by DjangoBB