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.

DarkBASIC Professional Discussion / sparkys collision and moving platform?

Author
Message
David iz cool
20
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 28th Oct 2011 20:23
hi i made a moving platform with sparkies collision,pretty easy just move object & sc_updateobject.

it works my player can jump on it but they dont stay with it as it moves.anyone know how or have an example of how the player can stay with the platform???

btw the player stays with the platform if it moves up/down,but thats because its up/down.
TheComet
18
Years of Service
User Offline
Joined: 18th Oct 2007
Location: I`m under ur bridge eating ur goatz.
Posted: 28th Oct 2011 21:20
You'll have to store the old positions of the moving platform, and then add the difference to the player



TheComet

David iz cool
20
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 28th Oct 2011 21:38
ok ill try that thanks!
Mobiius
Valued Member
23
Years of Service
User Offline
Joined: 27th Feb 2003
Location: The Cold North
Posted: 31st Oct 2011 22:20
If you use the newton physics engine, you can do this easily. Not Sparkies I know, but meh.

My signature is NOT a moderator plaything! Stop changing it!

Login to post a reply

Server time is: 2026-07-11 12:00:42
Your offset time is: 2026-07-11 12:00:42