Need to collect items in game and display in bar

rpayne1965rpayne1965 Member Posts: 6
edited June 2012 in Working with GS (Mac)
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.

Answers

  • HC_DKHC_DK Member Posts: 92
    edited June 2012
    Hi,

    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
  • rpayne1965rpayne1965 Member Posts: 6
    Thanks, I will give it a try.
  • HC_DKHC_DK Member Posts: 92
    Hi again,

    I have made a small example in GS with two "Crime Scenes".

    If you want I can mail you a copy.
  • rpayne1965rpayne1965 Member Posts: 6
    Yes, please! My e-mail is rpayne@payne-design.com
  • HC_DKHC_DK Member Posts: 92
    Mail send
Sign In or Register to comment.