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

2019/3/19

Limiting Actor's Movement to a Maze

flipWiz42 flipWiz42

2019/3/19

#
Hi, I'm trying to use Greenfoot to make a simple game for a class and I want my actor to not be able to pass through the "walls" of a maze. The maze is a part of the background, however, and making each and ever wall another actor and simply using the isTouching method wouldn't quite work. Is there any way to do this?
just make one image and make the walls a unique color and tell your actor to look for that certain color than say to turn 180 degrees and when else turn back.
flipWiz42 flipWiz42

2019/3/21

#
woooah, I can do that? How exactly would I word that to make the actor look for that color?
You need to login to post a reply.