After so many tests where I had to jump slightly when approaching the bottom of a slope, having flawless, smooth moves in the school zone almost feel magic!
Funny enough, the doslopes() function that I crafted carefully was already flawless, but the defects were in the glu code (the walker controller) that interfaces that with the animation replay. As I expected from the start, the step-by-step movements system was the root of the problem. It essentially nailed down to 2 things, that occured when leaving a slope:
I updated the demo link accordingly in the "back to school" post ^_^
Tuesday, September 04, 2012
Smooth Slopes at last!
Tags: coding, done, english, school zone, sidescroller, slopes, video
Subscribe to:
Post Comments (Atom)
2 comments:
I'm sure you've noticed that strange pause Bilou makes when he lands on the top of the binder. I think I've got an explanation for that (at last): the engine insists on finishing the "jump/fall" transition while the states have changed.
There's something subtle going on with those fall/walk transitions: it involves actually fall/idle/walk with a special action during fall/idle that makes idle believe the keypress on DPAD direction is "new" and immediately trigger an event.
Another item: iirc, walk cannot show a first image immediately: there is a MOVE statement ahead of the animation list. Should we skip it when entering the state ?
Post a Comment