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
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

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 Image
B
161
S
48
G
90
Posts: 7,347
Reputation: 66,749

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,508

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
93
S
19
G
34
Posts: 1,840
Reputation: 27,963

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
359
S
214
G
72
Posts: 22,946
Reputation: 178,508


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 1 guest