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

2014/9/13

How many ticks per second?

TehRyan TehRyan

2014/9/13

#
Im making a looping sound track for my game, and the song is around 3 minutes. So what would the tick be at the end of the song?
danpost danpost

2014/9/13

#
TehRyan wrote...
Im making a looping sound track for my game, and the song is around 3 minutes. So what would the tick be at the end of the song?
Why do you need to know this? and what exactly does 'tick' refer to -- act cycles? BTW, there is a 'playLoop' method in the GreenfootSound class (if you just want to restart the track when it ends). So, if you are using 'Greenfoot.playSound(/* filename */);', instead use 'new GreenfootSound(/* filename */).playLoop();'. If you want more control over the sound, you will need to save the sound in an instance field (or class field), so you can apply the 'stop' or 'pause' method on it.
TehRyan TehRyan

2014/9/13

#
Yes i believe thats what i meant, sorry for my lack of proper terms lol!! Its hard for me to interpret what im trying to say XD And thanks for the Play loop, ill make sure to use that in a future project!
You need to login to post a reply.