So, the idea is get color from colored box to the 3d box, i really don't how to make it, so can someone give me a helping hand and point me to the right direction.
I have made the code this far;
sync on
sync rate 60
make object cube 1,50
make object sphere 2,50
hide object 2
make object cone 3,50
hide object 3
race=1
cd#=3
do
cd#=cd#+0.1
if cd#>3
cd#=3
endif
point camera 0,object position x(1),object position y(1),object position z(1)
position camera 0,object position x(1),object position y(1)+40,object position z(1)-100
box 50,50,100,100,rgb(255,0,0),rgb(0,255,0),rgb(0,0,255),rgb(255,255,255)
if leftkey()=1 and object visible(1)
turn object left 1,1.5
endif
if rightkey()=1 and object visible(1)
turn object right 1,1.5
endif
if leftkey()=1 and object visible(2)
turn object left 2,1.5
endif
if rightkey()=1 and object visible(2)
turn object right 2,1.5
endif
if leftkey()=1 and object visible(3)
turn object left 3,1.5
endif
if rightkey()=1 and object visible(3)
turn object right 3,1.5
endif
if upkey()=1 and cd#=3
race=race+1
cd#=0
endif
if downkey()=1 and cd#=3
race=race-1
cd#=0
endif
if race=1
set cursor 300,10
print "box"
show object 1
hide object 2
hide object 3
endif
if race=2
set cursor 300,10
print "sphere"
show object 2
hide object 1
hide object 3
endif
if race=3
set cursor 300,10
print "cone"
show object 3
hide object 1
hide object 2
endif
if race<1
race=1
endif
if race>3
race=3
endif
sync
loop