Please excuse me, I am new to Greenfoot and still learning on the Wombat Scenario.
I googled everywhere but i cant find the code i need.
So it should be Repeat until a certain condition is met. Lets say i have a method downwards() and it should execute this until getWorld.getWidth() == getX() then it should execute method upwards() until getY() == 0 && getX() == 0. Then it should execute downwards again. How do i create this Loop?
![Twitter](/assets/twitter-4e19209ef84344ee0c433f4c7bad8d49.png)
![Twitter.hover](/assets/twitter.hover-1fb19a5bafc50deace8f88eaec867845.png)