GameMaker Tile Collisions | Zen Productions

Subscribers:
535
Published on ● Video Link: https://www.youtube.com/watch?v=IXQEyiHmB-w



Duration: 43:15
172 views
0


Tile based collisions are the best way to move your character around in games. Quick and light on CPU cycles, any game using them can greatly speed up their collisions overall.

Correction 1: Near the end I become confused as to why the character using the newly created script is unable to jump properly. I thought it was something to do with the step event code. As it turns out, it was just because I forgot to add `y += _y_speed;` after the for loop in the vertical collisions. :)

Correction 2: A small improvement I thought of after the video, put a `break;` after setting the speed to 0, as you don't need to be doing any more collision detecting after that.

Download a copy of the project file: https://drive.google.com/open?id=1KmYEUlU-HYkggV5KqikQCL6QhHl9KcTe

For more things by Zen Productions: https://www.zenproductions.org/
or follow my Twitter: https://twitter.com/ZenProductions
Have questions?: https://discord.gg/ssZS2eY

GameMaker Tutorials on Reddit: https://www.reddit.com/r/gamemaker/search?q=flair%3ATutorial&restrict_sr=on

Tiles and sprite courtesy of Kenny at http://kenney.nl/

Feedback as always is appreciated!







Tags:
GameMaker Studio 2
GMS2
GMS
GameMaker
Tutorial
getting
started
how
to
use
game
maker
studio