Events firing out of expected order

Just started using Construct 2? Post your questions here

Post » Sat Aug 23, 2014 7:16 am

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.
B
4
Posts: 5
Reputation: 210

Post » Sat Aug 23, 2014 10:22 am

.... 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.
B
4
Posts: 5
Reputation: 210


Return to Beginner's Questions

Who is online

Users browsing this forum: gyurto and 2 guests