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

2017/2/21

Does Greenfoot.mouseClicked() only work if the parameter is the object itself (this)?

1
2
3
4
danpost danpost

2017/2/25

#
SallySanban wrote...
What if I wanted the "invisible wall" in other backgrounds too, along with #5?
Then change the name of your current 'atRightEdge' method to 'atRightEdge5' and create the others similarly. Then use a concatenated condition:
Alleyway4 a4 = (Alleyway4)getWorld();
if (!a4.atRightEdge5() && !a4.atRightEdge6 /** etc. */)
SallySanban SallySanban

2017/2/26

#
Thank you very much, @Super_Hippo and @danpost! I was able to fix the door clicking and the background switching the way I wanted it to work. :)
You need to login to post a reply.
1
2
3
4