🔴 8 Direction movement + state machine [Game Maker Studio 2 | Basics]

🔴 8 Direction movement + state machine [Game Maker Studio 2 | Basics]

Channel:
Subscribers:
9,930
Published on ● Video Link: https://www.youtube.com/watch?v=MjIpL3dbFh0



Duration: 23:56
6,549 views
184


This basic tutorial shows you how to make 8-directional movement with a state machine in gamemaker studio.

What the hell is a state machine? Glad you asked, even if you didn't :D

A state machine is simply a standard way in programming to keep seperate units of behavior in so called states.

Image it like this: You have an idle state when the player or npc doesn't do anything. Then you have hurt state when the player is getting hit. Or you have a movement state where the player is moving around. You get the idea. The same can be applied to 8 directinal movement with regards to what image to use in what situation. The player moves right so he should have an moving animation that turns to the right and so on.

This basic video tutorial will guide you through all necessary steps to do simple imputs to move the player around and cross over to other states like being hurt or even the death animation. Additionally, you will see a collision system to make this thing round.


▶ Gamemaker Studio: https://www.yoyogames.com/get

▶ Trial limitations: https://help.yoyogames.com/hc/en-us/articles/230407528-GameMaker-Studio-2-Trial-Limitations

♥ My free game Clunky souls:
https://1up-indie2.itch.io/clunky-souls
♥ My assets:
Get some assets at itch.io https://1up-indie2.itch.io/

♥ Support me and get fresh game art and game maker projects every month:
https://www.patreon.com/1upindie


Follow me on:
https://www.instagram.com/1upindie
https://twitter.com/1upIndie
https://discord.gg/gvr98nb







Tags:
gamemaker state machine
gamemaker studio state machine
gamemaker state system
gamemaker studio 2 state machine
game maker states
game maker 8 directional movement
game maker 8 direction movement code
gamemaker studio 2 8 direction movement
game maker 8 direction movement script