View Single Post
Using a Boolean variable to control action
Old
djslater107
Administrator
 
Status: Offline
Posts: 164
Join Date: Jan 2007
Default Using a Boolean variable to control action - 08-03-2020, 01:29 PM

Create a boolean world variable, set it to false, and name it something like isActive.

You probably have a while loop controlling the drive around the track. That loop should be
while isActive
drive

When you click on the green button set the isActve variable to true

When you click on the red button, set the isActive button to false


Don Slater
Alice Team
Carnegie Mellon University
   
Reply With Quote