[small update: new double backflip in now, mouse is mostly fixed and back in, just needs some new animations]
Hey guys, I’m trying to finish the Remix soon as I can, so I’m afraid you’ll only be getting boring updates until that’s out.
Got a few new animations and features in this build, here’s a boring list!
– new backflip animation
– new hurt animation
– new get up animation
– new heavy land to run animation
More useful is the interface polish: an actual pause (click or space), volume slider, fullscreen button, hide UI (for screenshots I guess?), but the interface itself isn’t final yet. Some feedback on the level load progress there so you’re not just looking at debug text or a white screen, way better!
I did a polish pass on the levels in the alpha, moving blocks should be behaving properly now, please hammer away and tell me if there’s anything new acting up!
Performance Fix / Flash Ranting
So I was going to do an update post a few days ago but ran into a nasty, soul crushing bug in Flash. I was getting a huge CPU spike for doing nothing but turning around repeatedly! I’m still not exactly sure what was causing it, but here’s as much as I can figure out:
Fancy Pants Man has a big timeline with a huge amount of animations on it (nothing compared to World 3’s, but still more than usual I’m sure). It seemed like whenever you changed animations, every single animation on the timeline that it was skipping over was loading up and being processed, every single time, until garbage collection kicked in and wiped them clean. If you turned around repeatedly, that would cause the giant walking clip and all the nested animations there (walking legs, then either walk, pencil sheathing, pencil carrying, or landing torso) to load up over and over and over again. So apparently Flash can’t navigate timelines properly (you had one job, Flash!), and I can’t find anything about this online because I’m convinced that I’m the last developer alive who actually uses Flash like it’s Flash.
Anyway, to get around it, I just load the animations as their needed, and disable them instead of destroying them on animation switch. Even with all the animations loaded at once, CPU and memory usage are both lower than they were before. I had to change how some of the player loading code works, which caused a huge amount of bugs yesterday, so sorry about that!
Everything looks like it’s solid now, which is way more excited than it sounds. Before, after a few levels, the CPU usage would pile up and the game would come to a crawl until I reloaded the level and forced garbage collect to kick in. Had the game running for an hour or so yesterday and it remained at 60 the entire time (with some stuttering, but meh).
If you’re still getting poor performance, try lowering the quality to medium (but not low, that messes with the ground collision) for now, but I’ll have some options to turn down other settings, right now it’s running with basically maximum image quality (which is probably a huge no no in Flash, lawlz).
Oh, right, I also tried some new animation caching for the smoke dust puff, though Flash can’t rotate bitmaps to save it’s life, so it looks pretty terrible. Not sure if it even makes much of a different in the browser, but I’ll play around with it.
Have At It!
If you want to help, please just play through a few times and let me know if performance stays solid. If you want to go through and look for any remaining bugs in single player in the alpha, that would help me out a ton, I’m trying to get the first few levels ‘release worthy’ as far as bugs and polish goes.
Comments Remix Polish Update, Huge Performance Fix