[Solved] How do I do an event after an other one ?

Get help using Construct 2

Post » Wed Jan 25, 2017 4:04 pm

Hello,

I'm kinda stuck about the parents-children event. I want to play an event AFTER an other one but I don't want it to be limited by the parent system.

Take a look at the screen to make it easier to understand :
Image

Here I have an event about the tap gesture on " plateau_cases " and the conditions about it. This one works perfectly, but the problem is about the " for each ", I would like it to apply to ALL the cases I have (48 for the record) but the problem is with the children system it is applied to only the one that has been taped.

So I've tried to put this out a system of parents-children, but the problem is, it blocks my previous instructions, so the frame start at 0, never change to 1 and it block my game because I need the animation to be played.

So I need to know, if there is a way to "reset" the cases by putting the frame animation to 0 for each cases without being limited by the only cases that has been taped.
Last edited by dreaa on Wed Jan 25, 2017 7:51 pm, edited 1 time in total.
B
5
Posts: 30
Reputation: 291

Post » Wed Jan 25, 2017 4:08 pm

You could take it out like you did but put in a condition. It's not 100% clear what the condition is for resetting the frame to 0, is it when all animations are complete? A reset function might be best used here.

Something like this might be useful to control the reset? Image
B
46
S
16
G
74
Posts: 2,089
Reputation: 44,187

Post » Wed Jan 25, 2017 7:51 pm

Oh nice, exactly what I wanted, thank you! Always forgot to use functions ><.

I needed it to use it in a board game, the animation are the selectable cases and after the move I needed to reset it for the next turn
B
5
Posts: 30
Reputation: 291


Return to How do I....?

Who is online

Users browsing this forum: evillair, Rable and 6 guests