How do I make a pause button with 2 animations

Get help using Construct 2

Post » Sun Sep 14, 2014 8:12 pm

Greetings

I have a problem with a pause button having 2 animations.

Whenever I use the events 1 by 1 the animations trigger, however when I put them together, nothing works, it's like they cancel each other.

Image


Thanks for your time!
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029

Post » Sun Sep 14, 2014 9:01 pm

when event 27 is executed, event 28 is automatically true and will be executed (C2 reads from top to bottom)

One option would be making the is animation playing a subevent and putting event 28 as an else to that subevent..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Sep 15, 2014 10:24 am

Thank you @LittleStain ; I was aware how C2 reads the events and I thought that it would have a delay between the two touches so that they don't trigger at the same time.

I will try what you suggested and will post an update.
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029

Post » Mon Sep 15, 2014 10:28 am

There is only one touch and both object is touched events are true for that touch..
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Mon Sep 15, 2014 1:32 pm

Try to add wait action - in both events, set first action to System.Wait (0.1 seconds is enough, I think), and it should work ... ;)
B
32
S
7
G
4
Posts: 398
Reputation: 4,591

Post » Mon Sep 15, 2014 2:37 pm

LittleStain wrote:when event 27 is executed, event 28 is automatically true and will be executed (C2 reads from top to bottom)

One option would be making the is animation playing a subevent and putting event 28 as an else to that subevent..


Thank you very much, an elegant solution that works :)

Good idea with the wait thing, although I did not test it.
Black Bobby The Hole Greenlit with 303 votes.
B
36
S
8
G
1
Posts: 163
Reputation: 3,029


Return to How do I....?

Who is online

Users browsing this forum: David181, jorgmaquoi, unicornspitfire and 21 guests