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
99
S
22
G
37
Posts: 1,867
Reputation: 29,973

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
164
S
49
G
114
Posts: 7,674
Reputation: 79,547

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
367
S
217
G
82
Posts: 23,264
Reputation: 183,873

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
99
S
22
G
37
Posts: 1,867
Reputation: 29,973

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
367
S
217
G
82
Posts: 23,264
Reputation: 183,873


Return to Closed bugs

Who is online

Users browsing this forum: No registered users and 0 guests