How do I Make a condition that applies for ALL INSTANCES

Get help using Construct 2

Post » Fri May 26, 2017 9:13 am

But now i only checked only 1 frame. Guess i need to check a range of frames.

Using an Array (size : how many frames , 1 , 1)
An Array is just and no more then a way to organize variables that can have more values at the same time.

System > For .. Name = "aFrame" ... Start = zero ... End = how many frames
Sprite > Compare frame ... frame = loopindex("aFrame") ?
_____Sub / System > compare 2 values .. Sprite.Count = Sprite.PickedCount
___________Sub / Array > Compare at X .... X = loopindex("aFrame") ... Value =? zero
_________________sub / System > Pick All (Sprite)
_______________________action : do your stuff
___________Sub / Empty event
_________________action : Set at X ... X = loopindex("aFrame") ... Value = 1
_____Else
__________action : set Set at X ... X = loopindex("aFrame") ... Value = 0
Else
_____ if it is needed to capture the exeption
B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Post » Sat May 27, 2017 11:16 pm

randomly wrote:Or you could put the animation-frame condition and as a sub-condition, pick all objects of that kind (System condition -> Pick all) and then execute the action at that sub-condition.

Pick All does not work.
B
7
Posts: 4
Reputation: 283

Post » Sun May 28, 2017 11:04 am

B
33
S
18
G
28
Posts: 2,493
Reputation: 20,950

Previous

Return to How do I....?

Who is online

Users browsing this forum: CreativeMind and 22 guests