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

2024/1/23

How to die w/o error

TillaB13 TillaB13

2024/1/23

#
I am creating a 2d platforming game, where if you hit the lava it sends to a death/lose screen. However, when this happens I cannot reset the world nor terminate the program, and I have to use task manager to close greenfoot and restart my computer before I can open it again. I am using and if to see if its touching the lava, then Greenfoot.setWorld(new dead()). In the method where the characters jumps there is a lot of addition and reseting of variables so I am wondering if thats why its crashing, or if there is something else I should do.
You need to login to post a reply.