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

2014/11/25

Problem with keyboard input

Thieves Thieves

2014/11/25

#
I'm currently trying to move my actor around with keyboard input for a game similar to pac-man. However, when I do try to move the actor they occasionally get stuck on walls (the class tree). Is there anything with my code that I could change?
danpost danpost

2014/11/26

#
The best thing to do is to keep them off the walls: (1) move (2) if intersects wall, move back
You need to login to post a reply.