apply behavior in différents objects a the same time

Happy New year everybody :)

I recently discovered Gamesalad but there are not many tutorials in french.

I want to do an inventory in my game, in wich we can add new objects very quickly.

I want to know if it is possible to do as this little shema :

http://img849.imageshack.us/img849/4918/shemaa.png

is it possible to apply a behavior to an object other than the one in which the rule is ?

And change the value of attributes with the same name in differents objects with the tag "tag1" ?


and how ?

Is there any tutorial to make an inventory ?

Thanks, and sorry, my english is verry bad but there is no french gamesalad community :-S


Answers

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    Yes, all of that is possible. You can do When attribute self.Tags is/contains [tag name] ... [behaviors]

    You can communicate between actors by unlocking one to access other actors' attributes in the Scene menu, or you can create a game attribute to notify other actors as follows:

    First actor: When [some condition] ... Change Attribute game.notifyActor (boolean) to true.

    Second actor: When attribute game.notifyActor = true ... [behaviors]

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

Sign In or Register to comment.