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

2016/3/25

Error with playing sound

sidetracked sidetracked

2016/3/25

#
    public void checkCollision()
    {
        if (spiderAttackDelay < 1)
        {

            Actor theSpider = getOneIntersectingObject(Spider.class);
            World myWorld = getWorld();
            if (theSpider != null)
            {           
                removeLife();
                spiderAttackDelay = 50;
                Greenfoot.playSound("bite.wav");
            }
        }
    }
when the spider bites the sound tried to play and I get this error: nothing is wrong with my sound card or driver or anything :s
xFabi xFabi

2016/3/26

#
Cant really read whats in the picture Greenfoot is pretty buggy when using sounds, try converting your sound into .mp3, that should work
You need to login to post a reply.