Skip to Content
Read your mailRead your mail
Read your mailRead your mail
View the ForumsView the Forums
See your SalarySee your Salary
Access your bank accountAccess your bank account
Access your satchelAccess your satchel
Visit your houseVisit your house
WhyPetsWhyPets
PearlsPearls
Safety ToolsSafety Tools
Whyville TimesWhyville Times
Change your account settingsChange your account settings
Report a bug in WhyvilleReport a bug in Whyville
Confused? Click hereConfused? Click here
LogoutLogout
guest-95947
guest-95947
HomeHome
MapMap
PlayPlay
ChatChat
ShopShop
STEP TWO: TIMING

Your robot understands time in milliseconds or "ticks." 1 second = 1000 ticks.

You may want to tell your robot to move for a few ticks, then change direction. To explain this to a person you might say: "if it's been ten seconds, turn left."

In code, this is called an if() statement. The robot will obey the command "if" certain conditions have been met. Try it before a simple command like go():

if(ticks == 0) go()

This makes the robot go immediately. In the example below, the robot has to wait 3 seconds (3000 ticks) before moving in order to catch the ball. What code should you type?

To wait 3000 ticks for the ball to fall, the correct code is:

if(ticks == 3000) go()

Ready to use timing to turn? Click next!

Robodome Workshop Botball Hall of Fame Arena