Hi All!
I am a beginner with Greenfoot but I have some real projects in Java and Delphi. Now I try to use Greenfoot.
When I fist used "move(int)" in Actor I firstly think that it is not work at all. Objects at once move to world's border with single call of move(1). Then decreasing cell's size to 1 I could use the function properly. But increasing the cell's size I mention that objects move not by cell-size dist but by cell-size square. I.e. if cell size is 10 the call of move(1) relocating the object to 100 pixels. move(3) to 300 pixels...
In this code with one call of act() the Bug move to left on 400 pixels...
How this can be?
public class Terra extends World { public Terra() { super(50, 30, 20); } } public class Bug extends Actor { public void act() { move(1); } }