EMS Forums
Please login or signup to post on the forums.

Join the forum, it's quick and easy

EMS Forums
Please login or signup to post on the forums.
EMS Forums
Would you like to react to this message? Create an account in a few clicks or log in to continue.

Moving platforms

2 posters

Go down

Moving platforms Empty Moving platforms

Post by Joegernaut Sat May 21, 2011 12:04 am

Greetings...

I am fully clueless as to how to make horizontal and vertically moving platforms.
Help plox?

Joe
Joegernaut
Joegernaut
Corporal
Corporal

Posts : 78
Join date : 2011-04-18
Age : 27
Location : New Zealand

Back to top Go down

Moving platforms Empty Re: Moving platforms

Post by Water Chicken Sat May 21, 2011 6:26 pm

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}
Tell me if that works or not.
Water Chicken
Water Chicken
Lieutenant
Lieutenant

Posts : 254
Join date : 2011-03-22
Age : 24
Location : Chandler, Indiana

Back to top Go down

Back to top


 
Permissions in this forum:
You cannot reply to topics in this forum