Tuesday, March 2, 2010

Navigating The Timeline

My worst coding issue was probably the sound on my current Fretz alpha demo. I needed the sound to play through as a whole but on only one frame, and I constantly ran into both sound clipping looping (sound began once per frame at 30 FPS, deteriorating into an ear scalding aggressive white noise static in about 2 real-time seconds) and the sound refusing to stop (running from then on, despite whether the player was viewing their rating or had returned to the main menu).

I eventually fixed this with an Actionscript statement that addresses Flash's internal sound mixer and stops everything. It's on all the rating frames/scenes, which are not skippable.

No comments:

Post a Comment