Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
Daniel wright 2311
User Banned
Posted: 5th Jun 2012 18:24 Edited at: 5th Jun 2012 18:26
I have platforms set up,some are moving so when my player stands on one I need him to stay on the platforms position x unless I press the right key or left key,this way the player moves with the platform with out having to press any keys.

So,is there any easy way to do this?

my signature keeps being erased by a mod So this is my new signature.
Pincho Paxton
23
Years of Service
User Offline
Joined: 8th Dec 2002
Location:
Posted: 5th Jun 2012 18:55 Edited at: 5th Jun 2012 18:56
If it's X just add the X platform movement to the player position.

Daniel wright 2311
User Banned
Posted: 5th Jun 2012 19:21 Edited at: 5th Jun 2012 19:22
Quote: "If it's X just add the X platform movement to the player position."


thank you,you are right,easy, I will try this

box2x=object position(box2)
box2y=object position(box2)
box2z=object position(box2)

if object collition(2,box2)=1 and rightkey()=0 and leftkey()=0
position object 2 box2x,object position y(2),object position z(2)
endif

my signature keeps being erased by a mod So this is my new signature.

Login to post a reply

Server time is: 2026-07-08 05:38:20
Your offset time is: 2026-07-08 05:38:20