This site requires JavaScript, please enable it in your browser!
Greenfoot back
CieloMungcal
CieloMungcal wrote ...

2020/3/16

Sound Effect problem

CieloMungcal CieloMungcal

2020/3/16

#
i placed a sound effect when an actor does an act and the sound seems to be playing over and over again while the actor is doin that act. i only need it to play once. for example when i shoot the sound wont stop until the shot disappears from the world
danpost danpost

2020/3/16

#
CieloMungcal wrote...
i placed a sound effect when an actor does an act and the sound seems to be playing over and over again while the actor is doin that act. i only need it to play once. for example when i shoot the sound wont stop until the shot disappears from the world
Instead of using Greenfoot.playSound, maintain a GreenfootSound object and play it when needed.
You need to login to post a reply.