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
98
S
22
G
36
Posts: 1,849
Reputation: 29,404

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
163
S
48
G
100
Posts: 7,453
Reputation: 72,028

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
362
S
216
G
75
Posts: 23,119
Reputation: 180,497

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
98
S
22
G
36
Posts: 1,849
Reputation: 29,404

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
362
S
216
G
75
Posts: 23,119
Reputation: 180,497


Return to Closed bugs

Who is online

Users browsing this forum: newt, Prominent and 0 guests