Thread: Autonomous code
View Single Post
  #6   Spotlight this post!  
Unread 14-01-2003, 14:06
frumious frumious is offline
Registered User
#0847
 
Join Date: Jan 2003
Location: Philomath, Oregon
Posts: 10
frumious is an unknown quantity at this point
Send a message via ICQ to frumious Send a message via AIM to frumious Send a message via Yahoo to frumious
or, if you want something simpler, using the 2.5 code:

counter VAR WORD
counter = 0

inside the do...loop:

if counter++ > 500 then 'arbitrary time value
p1_x = 254
else
p1_x = 0
endif

should go forward for 13000 milliseconds, then go backwards.
change the 500 value up/down to have longer/shorter, it should incriment once every 26 ms (based on speeds of the default code)

Tyson