r/gamemaker • u/1magus • Jun 06 '14
Help! (GML) Attacking Animations Help [GML]
I'm currently using version 1.3.1344 and I have been trying to get this to work. Basically I want to have my object (and not my player, right now I'm having my weapon obj float in the air) have multiple combos. So attack once and if you attack again right afterwords then it plays out a new animation and same for the third time. If you attack again too late, then it simply starts over.
You can ignore the first four variables. Does anyone know what I'm doing wrong? I tried adding in release keyboard code but in the end that only changed the sprite when pressing the attack button and changed it back when releasing, it ignored the timers. You can also ignore which animations I picked, I was just going on random.
View all comments
Show parent comment
1
u/1magus Jun 08 '14
The key delay thing is actually something I hadn't thought of. Right now I got my three combo attack working and (for the most part) it will finish the animations, though the player CAN choose to disrupt them and switch it back to the beginning. If I in cooperated the delay code you showed off, then they couldn't do that... this may be very useful indeed. MUAHHAHAHAHAHAHAHAAH! Of course I can just copy your code, but I prefer to use what I do have at the moment. Thanks a ton!