hmm, I did a search but could not find any info. I made some code and tried to add a red light to gauge how strong the light was, but all I get is grey. As far as I can tell I am using all the commands correctly, so can someone tell me what I am doing wrong?
sync on : sync rate 0 : backdrop off
TimerInit(40)
Regulator = timerCreate(0)
timerStart(Regulator)
hide light 0
`SET AMBIENT LIGHT 30
make light 1
SET POINT LIGHT 1,0,30,0
set light range l,2000
color light 1,rgb(255,1,1)
make object plain 1,1000,1000
make object sphere 2, -1000
color object 2, rgb(0,0,124)
color object 1,rgb(0,255,12)
xrotate object 1,270
make_trees(25)
do
timerUpdateTime()
GOSUB Movement
sync
loop
function make_trees(tree_quantity)
for n= 5 to tree_quantity
nTreeHeight=50+rnd(75)
make object cone n,nTreeHeight
position object n,rnd(1000)+ -500,nTreeHeight/2, rnd(1000)+ -500
color object n,rgb(0,255,55)
next n
endfunction
Movement:
SpdRate# = TimerGetFactor(Regulator)
text 10,10, "spdRate = " + str$(SpdRate#)
text 10, 25, "camera: x = " + str$(camera position x()) + ", " + "z = " + str$(camera position z())
text 10, 50, "FPS = " + str$(SCREEN FPS())
CONTROL CAMERA USING ARROWKEYS 0,1 * SpdRate#, 1 * SpdRate#
RETURN