You should prevent the player to go back. Just adding a "&& this.getRotation() != 270" in the down command, !=90 in the up command, !=180 in the right command and !=0 in the left command.
It would prevent the player to go back and kill himself against his own neck aha
@danpost oh yes I see. I only had the base code of the ImageScrollWorld from your scrolling tutorial (https://www.greenfoot.org/scenarios/18226). I just added the methods to add a scrollable object, and it works now. Thank you very much!
Recent Comments | Show All
2021/2/18
Andrico's Snake Game
2021/2/17
Scrolling SuperWorld