I have to do that one object move until he gets to the edge of the world or simply gets interrupted by other object, then the actor had to change his direction randomly and keep moving, only if he can move to that direction. pls help
move();
if (interrupted())
{
moveBack();
changeDirections();
}