This site requires JavaScript, please enable it in your browser!
Greenfoot back
duckquack10393
duckquack10393 wrote ...

2021/5/18

Method isnt stopping even though I set the boolean to the opposite value

duckquack10393 duckquack10393

2021/5/18

#
For some reason even though I changed the value of the isGameOver boolean to true, the method still keeps on running. Is there a problem with my code or anything?
danpost danpost

2021/5/18

#
duckquack10393 wrote...
For some reason even though I changed the value of the isGameOver boolean to true, the method still keeps on running.
You changed the value of the isGameOver boolean in a world to true, but that would not be in the running world. You changed it in another world that you created on the previous line.
You need to login to post a reply.