SamSuka
shaunjs
shaunjs

patreon


[Early(ish) Access] Melee Attacks (part 1 of 2)

Source code here. 

Although this is part 1, this video is in itself a standalone, detailed tutorial on setting up a melee attack in the most accessible, flexible and scaling way I could come up with.

Huge thanks to members of the GameMaker subreddit discord who helped a lot with various elements of this tutorial.

Live to the public on Friday!

[Early(ish) Access] Melee Attacks (part 1 of 2)

Comments

Nvm, I found out, I was doing all my sprite changes in a draw event, so was overriding the script. :P

Raeldor

Finally I got onto this tutorial, And I have some errors, even if the code is a little different for my game. I can't find the error, the player sprite freezes on idle when transitioning to attack, if I remove the "image_index = 0" then simply the attack doesn't start and the player is being able to move.

Raeldor

Late to the party, but I am just glad you covered the issue (with image_index not working as assumed), I'd been confounded by it previously.


More Creators