Are you working on a top down game? Something like Binding of Isaac, Zelda, or Secret of Mana? Do you want your character to slide along ramps and walls smoothly. Do you want to use ANY movement speed; From 1, to 2.45, to 18, and even higher? Do you want to use the same collision code for all characters (players, enemies, npcs, bosses)?

This is the system for you!

With a single script, you can move your character around your room with perfect world collision! All you need to do is provide a direction to move and a speed to move at and you are done!

The system is completely independent of controls! If you are new to game maker or have done any research into basic collision detection, maybe this code looks familiar to you:

if(keyboard_check(vk_right) && !place_meeting(x+1,y,obj_wall));

When you bind your world collision to your controls, you are very limited in what you can do. What if you want to knock your player back from taking damage? Now you have to write new collision code to handle moving without pressing any buttons!

NO MORE!

How about this?

movement_and_collision(move_direction,move_speed,obj_wall)

Call that in your step event and your player will move and collide flawlessly!

Still not convinced this is the system for your game? Watch the YouTube tutorial in the listing. I give a detailed step by step tutorial for implementing the system into a new project.

Changes in 1.0.3

Added a fix that created odd behavior when a move speed not equal to zero was passed to the script with a -1 direction. In either case (0 for speed, -1 for direction) the script should simply make sure we aren't currently stuck in a wall and then break out. It now does that.

Version 1.0.3. Published August 23, 2016

Created with GameMaker: Studio v1.4.1757

Age Rating: 4+

Average Rating

Your review

You can only review assets you've bought.

Connor G
14 October 2018

Jonathan V
06 October 2018

Panayiotis Y
02 October 2018

Gadyka 5
18 May 2018

Daniel M
08 May 2018

Makes a tough job much easier

Writing your own collision code is the devil. Save yourself hours of weeping and gnashing of teeth and buy this instead!

I'd written my own collisions already, but it was getting increasingly janky each time I added to it. It did take some effort to switch my system over, but now that I've got it up and running, it's much more reliable and smooth than mine.

Eric M
22 April 2018

Great stuff.. but not completely working in GM2

Wonderful system.. but i find the player object getting stuck on slopes at times unfortunately. Perhaps others found a fix?

Pixelated Pope (Publisher)
18 October 2018

Oh, sorry for the late response! Yes, there was a change on the GMS2 side to how place_meeting works. The latest version should fix it. It also contains a lengthy comment about how to fix it if yoyo changes their mind again on how place_meeting should work.

Anonymous
17 January 2018

Riley G
15 January 2018

Anonymous
26 August 2017

Great!

This is a great movement system and the publisher is very helpful!

Pixelated Pope (Publisher)
27 July 2017

That is a very common issue with tiles. I'm assuming you saw this: https://www.yoyogames.com/blog/3/seamless-tile-scaling-in-gamemaker
If you are still having issues, you can join my GameMaker Discord server. Tons of members (including some of the best GameMaker programmers out there) here to help out. Come ask questions on any issues you might have! Join here: https://discord.gg/pVWbd5

Anonymous
31 May 2017

Rob S
15 March 2017

A Must-Have

This is so easy to implement and has significantly improved the workflow of my current project now that I can focus my time towards programming new elements into my game rather than constantly tinkering with collision code to stop characters getting stuck in walls or passing through them.

It's a godsend that I can't recommend enough. This is worth far more than the $4 asking price.

Tyler D
21 December 2016

Watch the video if you're at all skeptical

If you're at all skeptical about spending money on this, just watch the first five minutes or so of the video on the Details page. I spent a lot of time on trying to get my movement code right, but this is an excellent approach that I definitely wouldn't have come to on my own. The collisions work really, really well, and it was straight-forward incorporating it into my own project (the video also provides step-by-step information in implementing it in your own game). Also, I just did a quick test for importing into GM:S 2, and the only thing that came up in the compatibility report to resolve was the function draw_set_color. Highly recommend buying this. Paying four dollars on this is nothing compared to getting rid of the frustration of imperfect movement code.

Pixelated Pope (Publisher)
27 December 2016

Hey Tyler. Thanks for the support and the review! Glad you are finding the asset useful. Let me know if you find any bugs or if you have any further questions.

Zachary W
07 October 2016

Essential for those making a top down game

Great for RPGs or basic top-down shooters. I'll be using this a lot - Thank you.

Mike R
17 September 2016

Fantastic!

richard b
07 September 2016

Excellent product.

Wonderful job, thanks for this. Will get the retro palette swapper soon!

davide m
04 April 2015

Perfect!

This asset is brilliantly programmed, works easily with any project and it's very efficient. Chapeau to the publisher!