Hi guys,,
I have just started leaning Greenfoot.
I wanna make an object which I am controlling (using keys) to stop(moving) when it touches another object(wall) but still can be able to move to any free direction (or backwards). (The same concept when you move an object and it reaches the edge of the world. Still can move backwards and sideways but not forward)
I have used an if statement but got stucked looking for a method to use.. Need some help from you.. thanks in advance