Programming assignment 2014-01-13
|
Today I fixed the issue with animation, there was a line of code that drew a sprite on top of my animation; So the animation worked all along! :D…At least I think so. Moving on I started to work on the issues where we couldn’t stop and pause the music, the music handler we have right now can only handle one music clip playing so I decided to get the functions to work with the first music clip. When the user pressed ‘k’ the music were supposed to stop playing but what I think it does is that it writes over the channel but the music clip has already been loaded in so for us to get the ”stop effect” we had to pause the music first before we deleted the content on the channel. Now there’s an issue where if the music is paused and the user press ‘k’ the music would resume. I think it’s because stop() deletes/overwrites the current channel, and during the pause the active channel is set to ”pause” so when ”stop” is called it only overwrites the ”pause” and not the music.
The animation states it switches between: |