Game maker - Precise Collision Tutorial @rexfurry
Game maker - Precise Collision Tutorial  @rexfurry
Uploaded January 2013 | Updated November 2026, 3 hours ago
In this tutorial I show how to implement precise collision in Game Maker, enjoy ^)^

NEW Link to file: dropbox.com/s/8jtnfo5hvqscjtv/precise_collision_example.gmk

EDIT: Old ink is broken but I've re-wrote this system in code so it's a lot nicer and doesn't take up to much space. It's basically the exact same thing just in code form :)

You can place the below code in your player's Step Event and instead of different events and it will work (though if you want to separate it you can i.e put the move left code in a keybored left event).

if place_free(x,y+1){gravity=0.7 gravity_direction=270}else{gravity=0 gravity_direction=270} //Gravity
if place_free(x-4,y)&& keyboard_check(vk_left) //Move Left
{
x-=4
}
if place_free(x+4,y)&& keyboard_check(vk_right) //Move Right
{
x+=4
}

Below is the collision code, I've made it so it has to go in a separate collision event with your collision object:

move_contact_solid(direction,12)vspeed=0

If you want it so it goes in your player's step event as well just put this:

if place_meeting(x,y,your collision object here)
{
move_contact_solid(direction,12)vspeed=0
}
Game maker - Precise Collision TutorialAnime Studio Mask TestLets Draw in Game Maker - Gelatin Part 1ninja cat introBanjos Backpack Test level 2Ninja cat ep 1 WIP 2Game Maker how to make the sprites follow the viewRexplays: Crystal Universe Aftermath - [5]Lets Draw in Game Maker - ...Girl?Heros Shadow Ep 2 Scene 1 [TEST]Game Maker - Keyboard Menu TutorialCBFD - Poo Mountain (orchestrated)
rexfurry |

Game maker - Precise Collision Tutorial

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER