0

I would like the player after he/her makes it to the end of the map to go to the next level.
Here is an example of a code that I would like you to change so the player will close and open another level... blah = unimportant coding and whatever is inside * and * is the code I want you to edit

 a = 0
 while a == 0:
     blah
     balh
     if player crashes into wall:
         print"HA"
         a = 1
while a == 1:
    *make new box*
2
Contributors
2
Replies
3
Views
5 Years
Discussion Span
Last Post by Twin802
0

Looks like you you are having unterminating while if you do not change the value of a in other loops. For me the a variable looks without purpose, why not just break out of while, no need for sentinel variable, it only confuses the issue.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.