Priority in Event Sheet

New releases and general discussions.

Post » Sun Apr 26, 2009 6:46 pm

Event sheet:
1.
+PlayerSprite is overlapping Box1
>Show Text: "player overlaps box1"

2.
+(invert) PlayerSprite is overlapping Box1
>Show Text: "player is not overlapping"

3.
+PlayerSprite is overlapping Box2
> Show Text: "player is overlapping box2"

When PlayerSprite is overlapping Box2, events 2 and 3 are true. (Is that correct?)
Question: why does construct give priority to event 3 (when PlayerSprite is overlapping Box2)?

(Note: I used "opacity" instead of a text in my event sheet.)
B
16
S
5
G
7
Posts: 599
Reputation: 5,000

Post » Sun Apr 26, 2009 7:00 pm

Because it comes after, and events are executed in top to bottom order, as are conditions, actions and subevents.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,468

Post » Sun Apr 26, 2009 7:14 pm

Thanks.
B
16
S
5
G
7
Posts: 599
Reputation: 5,000


Return to Construct Classic Discussion

Who is online

Users browsing this forum: No registered users and 2 guests