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 / Sparky's Collision: Can't Jump and the player has no smoothing when he collides

Author
Message
cyangamer
16
Years of Service
User Offline
Joined: 2nd Jun 2008
Location: Houston, TX, USA
Posted: 27th Jul 2008 02:29 Edited at: 27th Jul 2008 05:46
Hi everyone. I've pretty much studied this dll like I was majoring in Collision Detection. Thanks to Aralox many commands started to make sense. The problems arise when I:
1) make the movement into a function, needed in order to run smoothly with the many other mandatory features of a game.
2) walk into my other models while testing; the player bounces everywhere with no smoothing (I'm referring to the model itself, not the camera).

Not only that, when my character jumps, he is forcefully put into the falling position that also seems to be extremely slow for some reason (download the file for more information).

" if player_state=0 then loop object 1,1,1
if player_state=1 then loop object 1,2,17" is completely ignored as well.

Here the code of the function:


Here are a couple startup functions from the main file:


And before you go, I have one more question:

How does collision work for other models that move that are controlled by the computer? Do have to use the same commands for them as for the player (cause that would be a lot of code!)

http://www.cyangaming.net/downloads2/Test4.zip

I'm taking a break from AI and Collision,
Currently working on - Ring Menu
Sixty Squares
18
Years of Service
User Offline
Joined: 7th Jun 2006
Location: Somewhere in the world
Posted: 27th Jul 2008 02:37
Were you trying to include the project file? If so, the download link appears to be broken...

cyangamer
16
Years of Service
User Offline
Joined: 2nd Jun 2008
Location: Houston, TX, USA
Posted: 27th Jul 2008 05:47
Try this. I'll just use my own server.

I'm taking a break from AI and Collision,
Currently working on - Ring Menu
cyangamer
16
Years of Service
User Offline
Joined: 2nd Jun 2008
Location: Houston, TX, USA
Posted: 30th Jul 2008 02:22
Any help?

I'm taking a break from AI and Collision,
Currently working on - Ring Menu

Login to post a reply

Server time is: 2024-09-27 18:22:55
Your offset time is: 2024-09-27 18:22:55