How to obtain/consume an item in CG?

ShadowMoonShadowMoon Member Posts: 146
edited February 2012 in Working with GS (Mac)
If i killed an enemy. How can I do obtain item in GS? How to consume it? What is the logic behind this? what attribute to store information/get rid of information?

Clock
Thanks

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949
    If you kill an enemy and want to then have an item, you can either spawn the item in place of the enemy (before the Destroy behavior, add a spawn behavior) or you can just "give" the player an item by changing a game or actor attribute. For example, you could use a boolean called "Has sword" and set it initially to false, then change it to true when the enemy is killed. Is this what you're wanting to do?

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

Sign In or Register to comment.