Why can't we create object if there is a pick condition:

Discussion and feedback on Construct 2

Post » Sun Jul 24, 2016 2:28 pm

Why can't we create object if there is a pick condition:

Look at the event below:
Image

Another example, if you have a "pick condition" on a "create object" action even though the picked object doesn't have anything to do with
the create object. It still avoids object creation.

Look at the event below:
Image
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565

Post » Sun Jul 24, 2016 2:38 pm

The condition in event 2 returns false, so the code at event 3 is never called. Add an Else to event 2 to do your create. In the second example, if there is no TiledBackground with a UID of 1, it also will return false and not run. That's the only reason Create wouldn't work.
ImageImageImage
B
71
S
21
G
230
Posts: 3,688
Reputation: 128,847

Post » Sun Jul 24, 2016 3:46 pm

@blackhornet - The outcome is still the same without the "Obstacle.PickedCount = 0".

But I do understand what your point is. So you mean that the "Pick by comparison - Obstacle.Signature = 'Active'" is the same as "Obsctacle.Signature = 'Active'", that it doesn't
run if the condition is false.
That makes sense since there are 0 instance in the layout that has the Obstacle with Signature = "Active".

Nice. Thanks, I get it now.
The Things you can create is only limited by your imagination. If you don't have the skills then use your motivation as a natural force to exceed all expectations. Chadori RebornXD
B
64
S
18
G
90
Posts: 1,118
Reputation: 59,565


Return to Construct 2 General

Who is online

Users browsing this forum: Anonnymitet, PixelRebirth, zenox98 and 6 guests