Game Maker Studio: How to Master Gravity, Jump, & Wall Collision.

Channel:
Subscribers:
271
Published on ● Video Link: https://www.youtube.com/watch?v=OWAhcMEd_rs



Duration: 18:50
94 views
0


Visit my Search Arena site: https://searcharena.wordpress.com/

GMX File: https://bit.ly/2I1yOP4

Was not talked about in video. Be sure that personright collision is set to land, and the action code is down below, when personright makes contact with land.

Only the goleft and personleftwalk get the collision with wall, action is set to "move free", direction 0, speed 0, do not check relative. The "wall" is set to solid, and do not check visible.

personright

Events:

Step

Actions:

if !place_meeting(x, y + 1, land)
{
gravity = 10;
}
else
{
gravity = 0;
}

personright

Events:

collision with land, be sure land is set to solid

Actions:

move_contact_solid(direction,8);
vspeed=0;

Events:

personright

Events:

press Up

Actions:

if !place_free(x,y+1){

action = "air";
vspeed -= 80;
}




Other Videos By MC Designs


2019-06-08Game Maker Studio: (Part 2) How to Scroll Left to Right on Screen.
2019-06-07Game Maker Studio: (Part 1) How to Scroll Left to Right on Screen.
2019-05-25Game Maker Studio: How to Make an Object, Play & Stop Sound at a Location.
2019-05-18Game Maker Studio: How to Create Monsters, to Move Randomly Toward Player.
2019-05-04Game Maker Studio: How to Fix a Corrupted GMX File Download.
2019-04-21Game Maker Studio: How to Master Wind, Rain & Object Follow.
2019-04-13Game Maker Studio: How to Create Birds Eye 3D Rain.
2019-04-12Game Maker Studio: How to Create a Sprite Color Change & Instance Change.
2019-04-06Game Maker Studio: How to Create Rotating Planets with Light & Shadow.
2019-03-31Game Maker Studio: How to have Light Follow the Player.
2019-03-30Game Maker Studio: How to Master Gravity, Jump, & Wall Collision.
2019-03-23Game Maker Studio: How to Create a Flickering Light Glow.
2019-03-16Game Maker Studio: How to Create a Different Pause Screen.
2019-03-09Game Maker Studio: How to Create Slide in Fade using Code.
2019-03-09Game Maker Studio: How to Create Fade In using Code.
2019-03-03Game Maker Studio: How to Master Resetting Score & Timer.
2019-03-02Game Maker 8.1: How to Create a Moving Fireball.
2019-02-23Game Maker 8.1: (Part 2) How to Create a Second Gun, & Ammo Countdown.
2019-02-23Game Maker 8.1: (Part 1) How to Create a Second Gun, & Ammo Countdown.
2019-02-16Game Maker 8.1: (Part 3) How to Reuse Shot Gun, once you have Ammo & Custom Message.
2019-02-10Game Maker 8.1: Fake 3D FPS (Part 2), How to Unlock a Door & Change Face icons.



Tags:
pc
computer
android
device
move
right
left
jump
gravity
fall
land
wall
free
game
maker
studio
walk
die
end
meeting
place
else
code
contact
direction
vspeed
up
air
if
collision
parent
learn
teach
how
master
create
make