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

2011/9/20

GreenfootSound should pause when pause the scenario?

bourne bourne

2011/9/20

#
It is quite annoying to have to program keeping track of each sound that may be playing, and pause it when the scenario is paused and play again once the scenario plays. (which is something that I see I must include to complete a scenario if it includes sound). Is there any desirable situation that you would want a GreenfootSound be playing when the scenario is paused (Other than annoy the user)? Otherwise would it make sense to have GreenfootSounds pause when the scenario pauses and play when the scenario resumes (if it was playing before the scenario paused)?
davmac davmac

2011/9/20

#
It is a bit complicated. I think with the initial implementation of GreenfootSound it did pause when the scenario paused; the problem was when you stepped through a typical scenario using the "Act" button then the sounds didn't really play (well - they played only while the actors were acting, i.e. very briefly!). On the other hand if they don't pause them automatically there is greater flexibility as the scenario creator can then decide to pause them or not (even though it is more work for them). Still, we could perhaps add some way to switch "auto-pause" on and off for individual sounds. I'll bring this up the next developer meeting. No promises :)
bourne bourne

2011/9/20

#
That makes sense. And okay cool! Thanks again
You need to login to post a reply.