I'm extremely new to Greenfoot and I am trying to create a game where when the actor moves, the screen follows the actor, keeping it in the center until it reaches the edge of the world.
I have tried multiple different codes and I'm doing something wrong because it never works. It usually says it doesn't recognize the X variable.
Could someone show me an example of a code for this scrolling screen?

