OH cool, you play? Very nice to see another musician indeed.
BTW after using inkey i think i prefer it, if i can just set the camera range now i'll be thrilled
EDIT:
SET CAMERA RANGE was not what i thought, so i found this:
cz#=wrapvalue(cz#)
if cz#>180 then cz#=cz#-360.0
if cz#>30 then cz#=30
if cz#<-30 then cz#=wrapvalue(-30)
but adding it to the above code didnt stop the camera
and if I add these conditions i get either "command line out of place" on endwhile, or if i remove endwhile I get" could not close nest during the compile"
if inkey$()="d" then roll camera left 0,1
if camera angle z(0)
roll camera left 0,0
if inkey$()="a" then roll camera right 0,1
if camera angle z(0)
roll camera right 0,0
sync
endwhile
while mouseclick()=1 : endwhile
delete matrix 1:autocam off
end
Please help I'm a NEWB to dark basic pro and I'm doing my best with my limited experience from the commodore 64. Also I dont even think my code would work because there are no if's ands or thens, but if i try to set the condition of already at 5 degrees do nothing i get parameter errors of can only have 1 parameter.
And this doesn't work either, i still get command out of place on the line with endwhile
sync on : sync rate 30 : sync
autocam on
make object cube 1,100
position object 1,0,0,100
while mouseclick()<>1
set cursor 0,0
print "USE A+D Roll Camera/ Strafe""
if inkey$()="d"
roll camera right 0,1
turn camera right 90
move camera 0.1
turn camera left 90
roll camera left 0,1
if inkey$()="a"
roll camera left 0,1
turn camera left 90
move camera 0.1
turn camera right 90
roll camera right 0,1
sync
endwhile
while mouseclick()=1 : endwhile
delete object 1
autocam off
end
i understand that this is basically a free flight control, but even if i were making a flight sim I would still have to limit the roll based on what type of aircraft i was flying, like for instance a 747 can't do barrel rolls, it's impossible. so maybe i need to attach some type of physics to the camera? But i've been at this almost every day for weeks. this is a lot of work for a simple camera tilt while strafing
Actress/model/musician/ & now a game dev