You can add as many traffic lights as you need, but all of them have to operates with the timer.
ink rgb(255,0,0),1:box 0,0,10,10
get image 1,0,0,10,10,1
ink rgb(255,200,0),1:box 0,0,10,10
get image 2,0,0,10,10,1
ink rgb(0,200,0),1:box 0,0,10,10
get image 3,0,0,10,10,1
ink rgb(40,40,40),1:box 0,0,10,10
get image 4,0,0,10,10,1
for i= 1 to 3
make object sphere i,4
scale object i,100,100,15
position object i,0,10-i*5,0
texture object i,i
next i
make object box 4,6,20,6:position object 4,0,-1,5
for i= 1 to 4
clone object i+10,i
move object i+10,60
next i
position camera -20,70,-60
point camera 0,0,0
do
for i= 1 to 3
set light mapping on i,4
set light mapping on i+10,4
next i
cron=cron+1
if cron<500 then set light mapping on 1,0
if cron>500 then set light mapping on 2,0
if cron>1000 then set light mapping on 3,0:set light mapping on 2,4
if cron<500 then set light mapping on 13,0
if cron>500 then set light mapping on 12,0
if cron>1000 then set light mapping on 11,0:set light mapping on 12,4
if cron>1500 then cron=0
sync
loop
Cheers.
I'm not a grumpy grandpa