public void act()
{
move(-2);
if(isAtEdge())
{
setRotation(180);
}
}
i've got this tiny piece of code here and it works but not how i want it to,every time it bounces off a wall for the 2nd time is stops, i was wondering if anyone could give me an idea or help?
