GameMaker Tile Collisions | Zen Productions
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!
Other Videos By Zen Productions
2018-09-24 | Loops P.1, While/Do | GMS2 Fundamentals |
2018-09-23 | Switches | GMS2 Fundamentals |
2018-09-22 | Conditionals | GMS2 Fundamentals |
2018-09-21 | Scripts | GMS2 Fundamentals |
2018-09-20 | Functions | GMS2 Fundamentals |
2018-09-19 | Macros and Enums | GMS2 Fundamentals |
2018-09-18 | Comments | GMS2 Fundamentals |
2018-09-17 | Errors | GMS2 Fundamentals |
2018-09-16 | Hello world | GMS2 Fundamentals |
2018-09-15 | Operations | GMS2 Fundamentals |
2018-09-14 | GameMaker Tile Collisions | Zen Productions |
2018-09-14 | Variables | GMS2 Fundamentals |
2018-09-13 | Scope | GMS2 Fundamentals |
2018-09-12 | Sounds | GMS2 Fundamentals |
2018-09-11 | Events | GMS2 Fundamentals |
2018-09-10 | Objects | GMS2 Fundamentals |
2018-09-09 | Tilesets | GMS2 Fundamentals |
2018-09-08 | Rooms | GMS2 Fundamentals |
2018-09-07 | Random | GMS2 Fundamentals |
2018-09-07 | Sprites | GMS2 Fundamentals |
2018-09-03 | NES GameMaker ARPG Tutorial, Legacy of the Wizard, Part 21: Chests |