I started a discussion (https://www.greenfoot.org/topics/64022/0) on these 2 topics a few days ago but I got banned momentarily from replying anymore there so I will continue it here. I'm trying to make a platformer and the movement I was previously using was buggy and broken. Danpost suggested me to use this movement: https://www.greenfoot.org/scenarios/11302 , and while I'm sure it generally works, in my particular case, after 1 second of movement, it freezes the entire project and has to be restarted. Regarding the retry button, the main issue which I did not know how to solve was: how do I know from which world the was the pauseMenu called so that I know which one has to be reloaded. My try was to create a method in each level which returns whether that was the last level or not through a return statement, but that did not work. Danpost suggested that I use if(getWorld() instanceof Lume), where lume is the first level, but I do not know how to use it properly :) . I cannot say that I know how to properly program in Java, but I master C++ and JavaScript, from where I use most of my knowledge. That's why I might get stuck with certain things that seem obvious, but aren't really that obvious to me if they're not implemented in one of the 2 programming languages listed above as well. So, can you help me debug the movement and implement the retry button, please? Thanks in advance! (sorry for the long essay, but I'm trying to compress as much information as possible so that I don't get disabled again by the admin's unterminabale "check for spam messages")
