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 / Problem with GDK FPS gravity/collision, not sure.

Author
Message
Miami_Rose
14
Years of Service
User Offline
Joined: 26th May 2010
Location:
Posted: 26th May 2010 11:09
Is someone able to glance over my code and let me know what is stopping me from moving? It may be completely obvious but I just cant find it. I load the terrain, gun, enemy.. but now im stuck, I wasnt before. :/ The code is:

Hassan
15
Years of Service
User Offline
Joined: 4th May 2009
Location: <script> alert(1); </script>
Posted: 26th May 2010 15:01
Yes, you can't move because you dont have dbAutoCamOff ( ) at the start, what's happening is that you create a matrix once every loop (why? you should do it once before loop), and since AutoCam is on, everytime you create an object the camera position is set to be facing the new object, so you should use dbAutoCamOff at start, and/or remove dbMakeMatrix(4,100,100,10,10); from the loop

hope it helps

Login to post a reply

Server time is: 2024-11-19 23:04:36
Your offset time is: 2024-11-19 23:04:36