Need to collect items in game and display in bar
I need to be able to display 3 collected items at the bottom of the screen. When the 3rd is collected I need text to appear indicating that they are done. The game is in storyboard format. The game is located here:
http://arcade.gamesalad.com/g/86645?GSCVersion=0.9.94
Please crack open and have a look. Any help would be greatly appreciated.
http://arcade.gamesalad.com/g/86645?GSCVersion=0.9.94
Please crack open and have a look. Any help would be greatly appreciated.
Answers
How detailed an answer to you need?
My quick answer is:
- Use tables. COL = crime scene / ROW = Evidence
- Have a Global Index Attribute keeping track of the crime scene which you can use to determine the COL to read/write in the table.
- Have a Global Index Attribute keeping track of the number of collected evidence. Also have one ROW for this so you can update when changing scenes.
- Constrain your Table Cell Value to the self.image. TableCellValue(yourtable,crimescene,collected evidence)
For the text part, have an image with the text you want. Make a rule inside where collected evidence attribute = 3 change self.alpha to 1 otherwise 0.
Place on scene. When changing scene update from table.
This was a quick one on how I would do it.
I hope that you get my point :-)
If you have any questions, feel free to ask.
HC
I have made a small example in GS with two "Crime Scenes".
If you want I can mail you a copy.