Audio Triggers

Get help using Construct 2

Post » Sat Jan 17, 2015 5:59 pm

Got a simple solution i'm sure but can't wrap around it --> I have a button that on hover plays a sound BUT also upon hovering that button it changes it's animation frame to 1 else (OFF HOVER) changes back to 0

problem is the audio loops 1000 times a sec.... I tried a trigger once but that then changes the frame back right away... ???
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Jan 17, 2015 6:08 pm

Just add the extra check for if the frame=0, play the sound, else don't.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198

Post » Sat Jan 17, 2015 6:18 pm

this is what I have...
You do not have the required permissions to view the files attached to this post.
Need Sprites For Your Next Project?
100% Vector Animated Sprites
B
8
S
2
Posts: 170
Reputation: 1,086

Post » Sat Jan 17, 2015 7:07 pm

Make a subevent to event 4: if animationframe=0 -> Play...
Add a blank subevent to event 4 to do the "Set frame to 1" after the first subevent.
Get rid of trigger once.
ImageImageImage
B
71
S
22
G
258
Posts: 3,791
Reputation: 143,198


Return to How do I....?

Who is online

Users browsing this forum: FabianB, Seruza and 7 guests