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

2013/4/24

Procaryota and his Improvement

Solringolt Solringolt

2013/4/24

#
Hello everybody, I'm making a project who slowly takes shape and I wanted to make a thread where I can ask questions about my problems during the development and where you can also tell me what I could add to my game.
Solringolt Solringolt

2013/4/24

#
I wanted to add a random timer for my bulletShot and a sound when fired but my method doesn't work any tip?
   if (Greenfoot.getRandomNumber(101)  <= 10)
            {
                Greenfoot.playSound("tir.wav");
                canShootNormal("enemyShot1.png");
            }
            
The sound for firing always plays but it should only play when a bullet is shot.. Here you can see the project.
You need to login to post a reply.