Im making a project in Greenfoot where an Actor moves back and forth. How do i get it to move towards the opposite direction when it hits a wall? It can only move towards the right at the moment
That would depend on how you move the actor to begin with. Post the class code of the actor (use the 'code' link below the reply box to insert code into your posts).