trigger once but not once

Bugs will be moved here once resolved.

Post » Sun Jan 06, 2013 9:23 pm



when cursor is over object sound play every time
B
103
S
25
G
39
Posts: 1,875
Reputation: 31,383

Post » Sun Jan 06, 2013 10:22 pm

Trigger once as you have it would keep the sound from playing every tick.
To have the sound only play once try using a global variable, then use a variable comparison to set up the trigger like:
>gvariable mousesound =0
->mouse is over object
--> trigger once: play sound, add one to gvariable mousesound
Image ImageImage
B
164
S
49
G
138
Posts: 7,946
Reputation: 91,858

Post » Mon Jan 07, 2013 4:05 pm

Please attach a .capx reproducing the problem as described by how to report bugs. Closing
Scirra Founder
B
378
S
219
G
84
Posts: 23,854
Reputation: 187,881

Post » Mon Jan 07, 2013 4:14 pm

@Ashley this is only one event
@newt when i use variable to do this, is no need to use 'trigger once' that's it.delgado2013-01-07 16:19:53
B
103
S
25
G
39
Posts: 1,875
Reputation: 31,383

Post » Mon Jan 07, 2013 4:21 pm

@delgado - I tried it and it works fine. This is why we always ask for a .capx, in case you did something different.
Scirra Founder
B
378
S
219
G
84
Posts: 23,854
Reputation: 187,881


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 4 guests