Game Maker Studio: How to Move Up & Down on a Ladder & a Shortcut?

Channel:
Subscribers:
268
Published on ● Video Link: https://www.youtube.com/watch?v=h0i7b-9xrKg



Duration: 20:10
158 views
0


Visit my MColver Art Gallery site: https://mcolverartgallery.wixsite.com/gallery

Paypal Donate: http://bit.do/fkPAb

GMS File: https://bit.ly/3cATR7J

Ladder: This Guy Explains it better then me...
https://www.youtube.com/watch?v=d6jAYR1LSsU

object0, he is facing right

Events:

Create

Actions:

///movement variables
m_speed = 10;
m_step = 5;

vspeed = 0;

m_gravity = 1
m_jump = -15;

Actions:

image_index = 0
image_speed = 0

Events:

End Step

Actions:

////movements
vspeed += m_gravity


if keyboard_check(vk_left)
{
move_contact_solid(90, m_step);
move_contact_solid(180, m_step);
move_contact_solid(270, m_step);
image_index = 1;
}


if keyboard_check(vk_right)
{
move_contact_solid(90, m_step);
move_contact_solid(0, m_step);
move_contact_solid(270, m_step);
image_index = 0;
}
if keyboard_check_pressed(vk_up)
if !place_free(x,y+1)
{
vspeed = m_jump;
}







Tags:
how
learn
teach
find
player
code
create
object
sprite
game
maker
room
if
place
set
get
draw
studio
back
ground
image
drop
change
computer
pc
android
device
collision
var
variable
step
ladder
up
down
jump
left
right
meeting
index
speed
gravity
free
keyboard
solid
move
contact
mask
shortcut