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

2016/1/5

Game Stops after actor touches another actor

babis95 babis95

2016/1/5

#
Hi I'm trying to make a racing game, and i wanted the player controlled car not to be able to touch arena walls, and when he does the game stops completely. and i am struggling with it a lot. I think i need to use 'isTouching' but does not seem to work. any suggestions?
danpost danpost

2016/1/5

#
First, you are not showing the code you are using (at least the method where you tried 'isTouching'). Then, you did not indicate how your walls are created -- whether they are Actor objects or drawn onto the background image of the World object.
You need to login to post a reply.