Use item and open door

BellowBellow BartenderMember, PRO Posts: 227
edited October 2013 in Working with GS (Mac)
I am not sure about title :P but how can you make like mystery game with use one item and open that door. I must create inventory but like collect 3 potion for open that door how can you make that ? .

Example : I have a door in my game and i want a key for opening that door. When you found key it looks at the inventory and you drag that key to the door. How can you use that. I am thinking something like when door collide with door change some game attribute to 1 and when this attribute is 1 open the door ?

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    You've mostly got it figured out. You can use booleans or a count to determine when the player has collected the right objects. So you could have an attribute called game.potionCount and each time the player collects a potion, you add one to that attribute. Then have a condition on the door actor that when Touch is Pressed and attribute game.potionCount=3, [open the door].

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • UtopianGamesUtopianGames Member Posts: 5,692
    Jon from stormy studio's has made an excellent template thats worth checking out.



    http://www.deepblueapps.com/stormystudios-templates/

    Darren.
  • BellowBellow Bartender Member, PRO Posts: 227
    edited October 2013
    Thanks for help

    @deepblueapps thanks for sharing template but i dont want to buy a template i am just working and i want to make it myself but thanks for thinking :) and i am not working on mystery game :)
  • UtopianGamesUtopianGames Member Posts: 5,692
    @Bellow NP m8 keep us updated with how its coming along.

    Darren.
  • BellowBellow Bartender Member, PRO Posts: 227
    @deepblueapps thank you. i will put a small video tonight :)
Sign In or Register to comment.