Sound Bug - Audio Loops When Set Not To

Discussion and feedback on Construct 2

Post » Sun Nov 23, 2014 4:44 am

I can't figure out why these audio files keep looping. So InRoomNumber is the number of the room you are in. When I walk into room 3 it loops. It's almost like its acting like it is happening every tick, but it isn't set under tick. It keeps playing the same sound file repeatedly prior to it finishing (almost like 1 play every second or less). I can't figure out why. Any help would be appreciated.
You do not have the required permissions to view the files attached to this post.
B
3
Posts: 5
Reputation: 185

Post » Sun Nov 23, 2014 4:59 am

it is being read every tick. add a trigger once condition. the way it is currently set up is every tick that InRoomNumber=3 play sound event. I

from How events work in the manual
Another way to think about an event is "If all conditions are met then run actions on the instances meeting the conditions".

se here to learn more on how events work they may seem simple but in reality the are complex things
https://www.scirra.com/manual/75/how-events-work
B
42
S
17
G
2
Posts: 850
Reputation: 6,209

Post » Sun Nov 23, 2014 5:41 am

@volkiller730 Thanks man that worked well. Didn't even realize it had a Trigger Once. Or atleast I forgot seeing. I figured it was happening every tick based on how it sounded, just couldn't figure out why if it wasn't in the System Every Tick.

And yea I realized the adding other conditions and ended up using it for that particular bathroom one, but it just seemed like a bit too much just to trigger a sound once. The Trigger Once ended up solving it for the other one that was giving me problems.

Thanks again :D
B
3
Posts: 5
Reputation: 185


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 6 guests