Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

Random Quick Question [Variables?]

Sorry to post another message so soon after my other post but uhm... say I have an item that 'summons' a party member (aka adds them to your party when used)... how would I go about making that item REMOVE the party member when used a second time? (What I'm saying is... everytime the item is used, it adds the party member, every other time it removes them). My theory is it uses variables but I wouldn't know how to go about doing this.
 
You're better to use a switch. Simply have the common event for the item turn a switch on when it summons

ie

Conditional branch switch [character summoned] is OFF

    Control switches [character summoned] ON
    (Events for adding the character)

    Else

    Control switches [character summoned] OFF
    (Events to remove the character)

Hope that helps.

Peace
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top