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.

DarkBASIC Professional Discussion / camera problem...

Author
Message
Fallen
21
Years of Service
User Offline
Joined: 27th Dec 2002
Location: Portugal
Posted: 28th Dec 2002 04:55
How can I make the camera follow the ship just like a flight simulator? I tryed some ways but is the first time i am using darkbasic... and programming in general #)
Thanks,
João


Terabyte
21
Years of Service
User Offline
Joined: 28th Dec 2002
Location: UK
Posted: 30th Dec 2002 16:36
I can see your'e using the command control camera using arrow keys.
I would not have controled the ship this way.
the following code allows the camera to follow the ship and allows acceleration when you press the upkey and deceleration when you release it.
In your loop (in between do and loop), delete control camera using arrow keys. Before the loop make a speed variable called T#=0
And put:

THATS ABOUT IT
I HOPE THIS WORKS FOR YOU!!

Login to post a reply

Server time is: 2024-05-18 01:16:08
Your offset time is: 2024-05-18 01:16:08