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 / Need help with veiw ... I WANT VEIW FROM TOP

Author
Message
FrEaK Sk8
19
Years of Service
User Offline
Joined: 1st Feb 2006
Location: about:Blank
Posted: 20th Feb 2006 16:35
hi ... i need a little help please ... i cant create veiw from top ... here is the code 4 u to amagin what i want

codeeeee ::::

load object "map.x",1
position object 1,-16,-16,-16
make object box 2,32,64,32
color object 2,RGB(128,255,128)
position object 2,-176,-128,-368
position camera 32,96,64
do
control camera using arrowkeys 0,2,1
loop
Image All
19
Years of Service
User Offline
Joined: 30th Dec 2005
Location: Home
Posted: 20th Feb 2006 17:26
Well, first off I'm going to try and save you from being flamed...don't use caps in thread titles

To fix the problem, do something like this



FunkyStickmen: Battle of the Races (1%)
Pheonixx
21
Years of Service
User Offline
Joined: 6th Oct 2003
Location: Columbus, Ohio
Posted: 20th Feb 2006 22:31
Quote: "control camera using arrowkeys 0,2,1"


Last I checked that command was locked to the x/z plain, so if you want to look down at an object you just have to declare "point camera n,x,y,z" where n is the camera number and x,y,z is the targets location. I remember that being pretty frustrating.

http://ausukusa.breakset.com
sadsack
21
Years of Service
User Offline
Joined: 27th Nov 2003
Location: here
Posted: 20th Feb 2006 23:00
here this as allways worked good for me.

code(this is where the camera opens at)

camx# = 130.0
camy# = 500.0
camz# = -137.0



autocam off
position camera camx#, camy#, camz#
point camera camx#, camy#, camz# : rem pointing straight down!

( this moves the camera around)

do

if upkey() then inc camy#,1.0
if downkey() then dec camy#,1.0
if leftkey() then dec camx#,1.0
if rightkey() then inc camx#,1.0
if inkey$() = "a" then inc camy#,1.0
if inkey$() = "z" then dec camy#,1.0


( this stop the camera from going where you don't want it to go)

if camx# > 800.0 then camx# = 800.0
if camx# < -800.0 then camx# = -800.0
if camy# > 913.0 then camy# = 913.0
if camy# < -900.0 then camy# = -900.0
position camera camx#,camy#,camz#

sync

loop
FrEaK Sk8
19
Years of Service
User Offline
Joined: 1st Feb 2006
Location: about:Blank
Posted: 21st Feb 2006 12:48
tnx 4 all the help now it works ... very nice veiw from top... lol
tnx again
enjoy

[/quote]weeee ... are thee noooooobs .... weeee areee thee nooooobs ... nooo timeee for wiiiiinneersss cuzz weeee aree thee nooooooobss... FrEaK sK8 :

Login to post a reply

Server time is: 2025-06-24 05:15:46
Your offset time is: 2025-06-24 05:15:46