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 / How can I put and keep the player on the ground.

Author
Message
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 1st Apr 2006 19:05
How can I put and keep the player on the ground.
Question 2: How can I add gravity to the player?
Game Man
18
Years of Service
User Offline
Joined: 23rd Nov 2005
Location:
Posted: 1st Apr 2006 20:04
I just responded to your other post when I noticed this.

Add this to your main loop.

Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 2nd Apr 2006 16:42
The object is half above and half below the matrix.
So when I do a collision check it stucks.
What is wrong with the code?
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 2nd Apr 2006 17:35
mmm, Code Snippet failed...
Daemon
18
Years of Service
User Offline
Joined: 16th Dec 2005
Location: Everywhere
Posted: 3rd Apr 2006 00:52
Well, if you want the player to be 2 spaces above the matrix then you do this.


or, if you want the player to be 5 spaces above the matrix then you do this.


and so on.

Insanity is just a state of mind
Eeyore
18
Years of Service
User Offline
Joined: 28th Mar 2006
Location: Netherlands
Posted: 3rd Apr 2006 09:18
Ok, thanks

Login to post a reply

Server time is: 2024-09-24 19:29:38
Your offset time is: 2024-09-24 19:29:38