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.

Dark GDK / collision

Author
Message
wtfmanwtfman
14
Years of Service
User Offline
Joined: 29th Dec 2009
Location:
Posted: 30th Dec 2009 22:45
hey i have been tampring for a while but i just cant get a working wall the best thing i could do was get my player to hit the wall on one side and get sucked though all the other plz healp thanks
lesPaul456
15
Years of Service
User Offline
Joined: 8th Apr 2009
Location:
Posted: 31st Dec 2009 00:43
Well, for basic collision you can just use the built-in commands, find out if a collision occurred using dbObjectCollision, and then move the player back to their previous location.

For more complex collision, you should use a library such as Sparky's Collision. If you download this library, there's an example for using a sphere to generate sliding data, which will allow for more complex collision detection and response.

Login to post a reply

Server time is: 2024-10-01 20:17:34
Your offset time is: 2024-10-01 20:17:34