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 / Problems with collisions

Author
Message
Dark onyx
17
Years of Service
User Offline
Joined: 8th May 2007
Location: Um... I kinda forgot it
Posted: 14th Jul 2008 15:41 Edited at: 14th Jul 2008 22:02
Hi, I'm quite new to Dark Basic Pro, despite that I've been registerd on this forum for quite a while now.
Anyway, I'm working on a small FPS game and I'm already having slight problems. The problem is with the collisions.

Here is the code I use:


It checks for collisions between the camera boundry and the world objects. Problem is that it will only collide with the last object and despite my efforts on making a code so you can walk on them, you can't. You just get stuck and you need to jump to get out of it. Although this only happens for the last object, it works for the two others. But then, you won't get elevated as much as you should. :/

Does anyone see what I've done wrong? If that is the case, could you help me?
Any help would be great!

EDIT: I found the great beginners FPS tutorial and I learnt a better FPS collisions system. I'll use that one instead of this one. But if someone still wants to solve his, then go ahead.

Login to post a reply

Server time is: 2024-11-25 01:25:26
Your offset time is: 2024-11-25 01:25:26