Nested Instance condition doesn't execute actions

Get help using Construct 2

Post » Sat May 13, 2017 5:31 pm

I'm trying to create a sequential platform where when the character jumps on the first platform, the second appears and when it jumps on the second the third and so on.

For that, I had to create a separate 'Helper' sprite that checks when the character is overlapping and create(enables) the next platform.

The problem is that the player can skip a platform and jump on forward and the next platform would show up.

To counter this I thought I can add a variable that activates the second platform's 'Helper' when the player hits the first platform and so on.

The boolean way didn't work (and hasn't worked for the entire project for some reason) so I had to resort to creating a number variable that goes 0 or 1.

But the system still doesn't work. The first part of the code executes properly but it doesn't change the value of the other picked instance. I had similar issues in the past. Now I'm thinking that if the condition has an instance of a sprite and the nested conditions have another instance of the same sprite it doesn't work.

Am I doing something wrong?

I hope I was clear, even though I'm a bit confused as this has been a continuous issue in the entire project.

Image
Image
image sharing sites
B
26
S
1
Posts: 59
Reputation: 1,100

Post » Sat May 13, 2017 6:01 pm

You need a "Pick all" added before the second Skeleton_Helpers, as you will only ever have Plt-A picked - which is exactly what you told it to do (correctly).
ImageImageImage
B
71
S
22
G
242
Posts: 3,734
Reputation: 134,994

Post » Sat May 13, 2017 6:12 pm

@blackhornet
It worked amazingly. I finally get why this was happening. Thank you so much.
B
26
S
1
Posts: 59
Reputation: 1,100


Return to How do I....?

Who is online

Users browsing this forum: JackTYGA, PROxMTswatTR and 20 guests