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

2015/5/26

greenfeet

bzhang bzhang

2015/5/26

#
http://www.pembinatrails.ca/fortrichmondcollegiate/compsci/greenfoot/gridbased/default.htm how?
danpost danpost

2015/5/27

#
What have you tried?
bzhang bzhang

2015/5/27

#
public Tiles() { ); }
danpost danpost

2015/5/27

#
The tiles are to have an image state (hiding or showing) and a selected state (would it be okay to click on the tile or not). Maybe methods like 'show', 'hide' and 'setSelected' with a boolean field to hold the selected state would be in order. You can change the transparency of the image for showing and hiding. Of course, it will also need an 'act' method to detect tile mouse clicks.
bzhang bzhang

2015/5/28

#
Wow thanks for your help danpost :D
You need to login to post a reply.