not 100% sure this is what you want, and i basically swapped ID 0 for ID 100 for simplicity's sake in the example, but is this close?
sync on : sync rate 0
autocam off
mainobj = 100
make object cube mainobj,10.0
position object mainobj,0.0,-5.0,0.0
pointer = 200
make object triangle pointer,-5.0,0.0,0.0,0.0,0.0,10.0,5.0,0.0,0.0
position object pointer,0.0,0.0,25.0
for x = 3 to 6
make object sphere x,10.0
position object x,(x-4.5)*100.0,-5.0,100.0
next x
position camera 0.0,150.0,-100.0
point camera 0,0,0
do
if keystate(26) = 1
if wasreleased = 1
pointid = 100
lastselect = timer()
wasreleased = 0
else
if lastselect + 500 < timer()
pointid = pointid + 1
if pointid > 6 then pointid = 3
lastselect = timer()
endif
endif
point object pointer,object position x(pointid),object position y(pointid), object position z(pointid)
else
wasreleased = 1
endif
set cursor 0,0
print screen fps()
print scancode()
print "PointID: ",pointid
sync
loop
avoid
wait when you can and use a timer instead. the example here is a 1/2-second step time (500ms). adjust the line:
if lastselect +
500 < timer()
however you want to increase/decrease time between steps in the cycle.
hope this helps
Virtual Nomad @ California, USA
AMD Phenomâ„¢ X4 9750 Quad-Core @ 2.4 GHz . 8 GB PC2-6400 RAM
ATI Radeon HD 3650 @ 512 MB . Vista Home Premium 64 Bit