Computer Science Canada

Command on how to end all loops / code when a condition is met?

Author:  GodsObscure [ Wed Jan 06, 2016 1:55 pm ]
Post subject:  Command on how to end all loops / code when a condition is met?

I am trying to make a racing game, and when the first car hits the finish line, I'd like it to stop all the other stuff going on in the game. Any ideas? Thanks!

Author:  Jeffmagma [ Wed Jan 06, 2016 6:10 pm ]
Post subject:  Re: Command on how to end all loops / code when a condition is met?

Stop everything? I think the quit or return command works.
If you just want to exit a loop, try the exit command


: