Moving platforms
2 posters
EMS Forums :: Discussion :: Game Maker :: Questions
Page 1 of 1
Moving platforms
Greetings...
I am fully clueless as to how to make horizontal and vertically moving platforms.
Help plox?
Joe
I am fully clueless as to how to make horizontal and vertically moving platforms.
Help plox?
Joe
Joegernaut- Corporal
- Posts : 78
Join date : 2011-04-18
Age : 27
Location : New Zealand
Re: Moving platforms
They aren't simple, but are more than possible. I suggest having a variable in the create event of an object(moving platform) that keeps the speed of the platform, and a step event that looks like:
- Code:
if place_meeting(x,y-1,oPlayer){oPlayer.x += spd}
if place_meeting(x+spd,y,oPlayer) or place_meeting(x+spd,y,oBlock){spd = -spd}
Water Chicken- Lieutenant
- Posts : 254
Join date : 2011-03-22
Age : 24
Location : Chandler, Indiana
EMS Forums :: Discussion :: Game Maker :: Questions
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum