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.

Newcomers DBPro Corner / Jump to a box?

Author
Message
Farooqaaa
18
Years of Service
User Offline
Joined: 26th Jun 2006
Location: Universe
Posted: 6th Jul 2008 16:31
Hello all,

See my code below, I want the player to stay on the box, when it jumps and collides with the box. Just like in Super Mario.



Awaiting your quick responses.

Thanks
MSon
20
Years of Service
User Offline
Joined: 13th Jul 2004
Location: Earth, (I Think).
Posted: 6th Jul 2008 19:12 Edited at: 6th Jul 2008 19:21
Hi There, Sorry about the delay in getting this to you, this is the simplest collistion example I can do, use left + Right to move, and Space to Jump, this example will yet you jump onto a box, but is more like on a platform game.



If you use a Physics Engine like DarkPhysics or Newtons, then that will do much better collision

I'll try to contact you back on MSN to let you know i've posted it here.

Everyone Be Cool, You, Be Cool.
Farooqaaa
18
Years of Service
User Offline
Joined: 26th Jun 2006
Location: Universe
Posted: 7th Jul 2008 03:36
Thanks a million MSon.

I have added it to my code but it has some problems. Heres the code:



Try jumping to the box and under the box to see the problems.

Thanks again for your help.

Login to post a reply

Server time is: 2024-11-25 01:42:24
Your offset time is: 2024-11-25 01:42:24