This site requires JavaScript, please enable it in your browser!
Greenfoot back
11770
11770 wrote ...

2014/10/8

Need actor to only turn once

11770 11770

2014/10/8

#
when i set it to turn(45); while intersecting an object it always does a 180, also my walls the actors get stuck in them and spin pretty often. if ( isTouching(Wall.class) ) { turn(45); }
danpost danpost

2014/10/8

#
Unless you move your actor back off the Wall object immediately, it will turn 45 degees again and again.
11770 11770

2014/10/8

#
i'm trying to make a pacman style game and the issue i'm having atm is with the ghosts turning too much/getting stuck. there a way i can do somthing like if within.1 of Wall.class turn?
You need to login to post a reply.