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 / 360 Camera Spin

Author
Message
St0rMrAgE
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 18th Mar 2003 21:38
So... in am new to Dark Basic an i want to create a RTS.
I want to include a 360 camera spin motion...

Can you tell me how to do it ?
Chiwawa
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 18th Mar 2003 21:54 Edited at: 18th Mar 2003 21:56
for i=1 to 360
turn camera left 1
sync
next i

there is many other way to do it... with "rotate camera" .....
St0rMrAgE
21
Years of Service
User Offline
Joined: 18th Mar 2003
Location:
Posted: 18th Mar 2003 22:04
could you give me the full algorithm ?

John H
Retired Moderator
22
Years of Service
User Offline
Joined: 14th Oct 2002
Location: Burlington, VT
Posted: 18th Mar 2003 22:56
for x=1 to 360
do
YROTATE CAMERA X
loop
next x

Is just about as full as you are going to get

RPGamer

Current - RPG: Eternal Destiny
http://www.halbrosproductions.netfirms.com
Dont ask those questions! Read the help files lazy! Oh ya, and Tat has a plugin for that!
The Darthster
22
Years of Service
User Offline
Joined: 25th Sep 2002
Location: United Kingdom
Posted: 19th Mar 2003 00:09
This is the kind of thing you need in a RTS game, I think.

do

a#=wrapvalue(a#+mousemovex())

position camera x#+(sin(a#)*r#),y#+200,z#+(cos(a#)*r#)
point camera x#,y#,z#

sync
loop

Once I was but the learner,
now, I am the Master.
Chiwawa
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 19th Mar 2003 00:44
i dont even know whats is a rts game... then..
Speedhorn
21
Years of Service
User Offline
Joined: 6th Feb 2003
Location: United Kingdom
Posted: 19th Mar 2003 02:59
RTS = Real-Time Strategy

Ralph, Jesus didn't have wheels.
Chiwawa
22
Years of Service
User Offline
Joined: 13th Oct 2002
Location: Canada
Posted: 19th Mar 2003 03:18
ok

like starcraft.....

Login to post a reply

Server time is: 2024-11-24 05:55:16
Your offset time is: 2024-11-24 05:55:16