Uploaded September 2011 | Updated November 2026, 3 hours ago
This tutorial show how to create moving platform in game maker that your player can walk/jump on.
Codes:
hspeed = 2.4;
if (place_meeting(x, y-32, obj_player) && other.vspeed = 0)
{
with (other)
{
vspeed = 0;
gravity = 0;
if (!place_meeting(x+other.hspeed, y, obj_block_parent))
x+= other.hspeed;
y = yprevious;
}
}
if (hspeed == 2.4)
hspeed = -2.4;
else
hspeed = 2.4;
And here's the link to that test video I was talking about: youtube.com/watch?v=E2-pnDfjSCU&feature=channel_video_title
This tutorial show how to create moving platform in game maker that your player can walk/jump on.
Codes:
hspeed = 2.4;
if (place_meeting(x, y-32, obj_player) && other.vspeed = 0)
{
with (other)
{
vspeed = 0;
gravity = 0;
if (!place_meeting(x+other.hspeed, y, obj_block_parent))
x+= other.hspeed;
y = yprevious;
}
}
if (hspeed == 2.4)
hspeed = -2.4;
else
hspeed = 2.4;
And here's the link to that test video I was talking about: youtube.com/watch?v=E2-pnDfjSCU&feature=channel_video_title










