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 / Gravity, can't seem to get it to work.

Author
Message
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 28th Apr 2004 07:55
I can't get the gravity to work on my camera at all. I don't know if the code is wrong or if I did it wrong or something.

Just a programmer
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 09:29 Edited at: 28th Apr 2004 09:29
If you only have one camera change the camera number 1 to 0.
"CONTROL CAMERA USING ARROWKEYS 1,0.01,0.05"
But other than that the gravity works on my computer. You might also want to change it to a higher number like "camera position y()-0.5" or even higher.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 28th Apr 2004 09:44
Okay I changed the camera number to 0 but it said could not use camera 0 at line 5.

Just a programmer
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 09:47
You have Dark Basic Pro or Dark Basic Classic?

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 28th Apr 2004 09:50 Edited at: 28th Apr 2004 09:59
I have DarkBasic Pro.

Just a programmer
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 09:59 Edited at: 28th Apr 2004 17:10
you don't need the make camera command when using only one camera the default number is 0 just rem out the make camera line and it works.


"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 28th Apr 2004 10:05 Edited at: 28th Apr 2004 10:14
Yay it worked. Thanks alot for the help.



One more thing. I land on a huge block and I can't move.



Is it my camera collision or something else?

Just a programmer
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 10:45 Edited at: 28th Apr 2004 17:10
This works good for your first post.

I always use autocam off. And sync on: sync rate 60 lets you control the frame rate to 60 frames per second. Just remember to put a sync at the bottom of your loop.

The second problem is caused by using auto collision. It is a non-sliding collision when you hit it it stops you. That is why I never use auto collision. I bought nuclear glory collision for $15. But there are work arounds for the automatic collision not sliding. I am too sleepy now though. Good luck

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 11:01 Edited at: 28th Apr 2004 17:10
This works better for the first post because with this one you can fall off of the matrix. And allows Frame rate control.


"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 17:11
Also I forgot to mention that you need to put an "end" after your loop.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full
a Programmer
20
Years of Service
User Offline
Joined: 27th Apr 2004
Location: Unalaska, Alaska
Posted: 28th Apr 2004 20:08 Edited at: 28th Apr 2004 20:15
Well I fixed the camera problem were I could not move when I hit the ground.

I just changed 4 to 0 and it worked out great. I can fall off the ground and still move around fine.



Quote: "This works better for the first post because with this one you can fall off of the matrix. And allows Frame rate control.
"


I did not use a matrix. I did at first but then got rid of it and have just been using that cube to walk on. I will add a matrix in today or tomarrow and mess aorund with it.

I will make sure to put "end" after my loop and put the sync rate on thier too.

Thanks again for you're help.

Just a programmer
Lost in Thought
20
Years of Service
User Offline
Joined: 4th Feb 2004
Location: U.S.A. : Douglas, Georgia
Posted: 28th Apr 2004 22:12
No problem. Glad I could be of some help as other have helped me.

"People don't fail ..... they stop trying." Specs. P4 2.8GHz 800 FSB | 512MB DDR333
GeForce FX 5200 AGP 256MB | Windows XP Pro Full

Login to post a reply

Server time is: 2024-11-26 14:39:23
Your offset time is: 2024-11-26 14:39:23