UPDATE: See the blend file attachments below for new demos.
I have here something I’ve been working on for a couple of weeks now. It’s basically my attempt to give the sprite “arbitrary foot steps” if you understand me.
I put it all into a script I called Sticky Feet. It makes the feet stick to the ground (wherever they may fall) until it is released again in another foot step. The length of the step is determined by the speed of the character- not by a pre-made animation.
I have included the blend file below. You may notice that the armature is split up into a number of different objects. That is still a work in progress. I’m not sure how to explain it right now. It’s there to avoid some rather tedious scripting and may disappear in the near future. So don’t ask :p!
This is my first serious scripting project so some of the code might be a little confusing. I tried to put in as many notes as I could. If there is something that could be drastically shortened or improved, feel free to enlighten me. I’m still learning:o.
I’m still trying to simplify it to the point that I could more easily apply it to creatures of more than two legs. Right now the script is dependent on more objects and properties than I’d like. Expect updates regularly.
EDIT: Just added the latest versions. Did away with most of the extraneous logic bricks, properties, and objects. The script can also work on multiple characters without their inner workings getting tangled up (as long as each character is in a separate object group). I’m hoping to make the file simple enough to put into a kind of template.
the controls are:
S : backward
Mouse Movement: look around
Space bar: over the shoulder view with target
below are the blend and some images.