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 / question for sparky,can we have a moving platform example?

Author
Message
David iz cool
20
Years of Service
User Offline
Joined: 21st Sep 2005
Location: somewhere lol :P
Posted: 31st Oct 2011 17:28
where your player can jump on the platform & stay with it??

i think this would be soo cool! i could make vehicles like this.

are u out there sparky????
Braude Interactive
19
Years of Service
User Offline
Joined: 1st Aug 2006
Location: Sheffield, UK
Posted: 1st Nov 2011 14:53 Edited at: 1st Nov 2011 15:01
Why do you need it to be done by sparky?

Just take the speed and direction and add it to that of your player when you're in contact with the object in the direction it's travelling in.

Basically what I'm saying is this is a challenge for you to solve! Can you show us how you've started to do it? We can help you here I'm sure!

EDIT:
Just saw you'd already posted this problem

http://forum.thegamecreators.com/?m=forum_view&t=190818&b=1
chafari
Valued Member
20
Years of Service
User Offline
Joined: 2nd May 2006
Location: Canary Islands
Posted: 1st Nov 2011 19:18
If you have a moving object,and you want to collide with it,you have to update your object in the main loop....anyway, as Braude interactive said, you don,t need sparkys for that, and you can do it just comparing platfor x and player x.
Cheers.

I'm not a grumpy grandpa

Login to post a reply

Server time is: 2026-07-10 07:38:28
Your offset time is: 2026-07-10 07:38:28