Game Maker Studio: How to Move Up & Down on a Ladder & a Shortcut?
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;
}