Tag : rpg movement

Game Maker RPG Movement – WASD/Arrow Keys

Game Maker RPG Movement – WASD/Arrow Keys

rpg movement game makerDescription:

This is a simple GML snippet for an RPG style movement using either the arrow keys or WASD. This Game Maker RPG Movement snippet goes over the begin step event to detect our collision objects.


  • Game Maker 8.1 Or Game Maker: Studio

Game Objects:

  • ObjWorldCollision
    • An Empty Game Object used as barriers/walls so that the player can’t move past them.
    • I typically set this to the grid size, which tends to be a 32×32 square.

The Create Event Code:

The Begin Step Event Code:

The Step Event Code:

Please stay tuned for our next RPG movement game maker snippets!

Want to expand your knowledge? I highly recommend this book for getting more advanced with your GML code and game development experience with GameMaker: Studio. Please buy this book: GameMaker Game Programming with GML

GameMaker Game Programming with GML is one of the highest recommended books for GameMaker Studio! If you are ready to take your programming to the next level, I highly recommend picking this up!