Events firing out of expected order

0 favourites
  • 2 posts
From the Asset Store
14 amazing sound files of game events like Level Ups, Level Completes, object spawn, object taking etc.
  • Hello! I'm working on an inventory layout, and the basics of what I've made in the events sheet are:

    Ev1

    If:

    button clicked

    AND

    variable Slot One = 0

    Then:

    set variable Slot One to 1

    laundry list of stuff

    Ev2

    If:

    button clicked

    AND

    variable Slot Two = 0

    Then:

    set variable Slot Two to 1

    laundry list of stuff

    etc. for five slots + another event, where if variables Slot One through Slot Five are all 1, it'll throw an error. I'm expecting someone to click "the button," have Slot One filled (since events run from top to bottom, where it'd fire the first one it sees), and then if they click "the button" again, Slot Two will be filled, etc. to Slot Five. What's happening is all slots are simultaneously filled when someone clicks "the button," like it's checking all the events first, then firing all where conditions were met. Am I missing something?

    Any help appreciated.

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • .... lol. Okay, I see. "Button clicked" doesn't get reset just because one event used it as a condition and fired. I'll go stand in a corner, now.

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)