Thread: Stop my car
View Single Post
Status: Offline
Posts: 38
Join Date: Nov 2011
Default 11-30-2011, 05:43 PM

Attached is a partial solution to this problem.
I've used a while something is true event to drive the car until it passes a fire hydrant.
You can also use the spacebar to start/stop the car.
A boolean valued variable, stopped, is used to indicate whether or not the car is stopped - this is toggled when you press the spacebar and set to true when you pass the fire hydrant.
Attached Files
File Type: a2w cardriveuntil.a2w (229.7 KB, 16 views)

For video tutorials on programming in Alice 2.2 check out my YouTube channel

Also check out my Programming in Alice blog at
Reply With Quote