Home Artists Posts Import Register

Content

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!

Files

GameMaker Studio 2: Melee Attacks Tutorial

▶ Source code: https://shaunjs.itch.io/shauns-melee-example ▶ Support my work: https://www.patreon.com/shaunjs A remade, revamped and more in depth video on melee attacks for GameMaker Studio 2. Part 1 covers a basic attack using a state machine, part 2 will cover combo chains. Shout outs to PixellatedPope and other members of the GameMaker subreddit discord channel for their help in making this video. ▶ State machines in depth: https://www.youtube.com/watch?v=-0bckaBj__M ▶ GameMaker Discord: https://www.reddit.com/r/gamemaker/comments/5kcxbt/rgamemaker_discord_server_is_now_live/

Comments

Anonymous

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.

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

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