So after my last post, I have been wondering how to add extra animations to my character, as now that I have used nextFrame(); to walk the character on screen, I now have to find a way to have him jump.
Arrow Keys and W,S,A,D to move the characters.
So in this example above, I took the jumping animation and placed it along in the timeline, along with the other movieclip animation tweens, and the results was that the first frame was flickering on and off in any possible jumping instance.
Arrow Keys and W,S,A,D to move the characters.
With a little bit more progress, I managed to have him jump, but only the first frame would stay on, and to even see that possible, you have to be holding one of the left or right directional keys down, otherwise if you press the jump button, you're only going to see the same flicker as you do in the first flash I posted. What also interestingly enough happens is that when you are jumping (with a directional key held down) and land to the floor and keep holding, the jumping animation itself is holding itself without reverting to the original standing frame.
Arrow Keys and W,S,A,D to move the characters.
This one isn't really useful in any way, but I posted it because one of my "good" ideas was to change the registration point of my character completely to see if the jumping would be possible, but my little guy gets stuck in mid air, which is really a worse problem than the two above..
Thursday, 14 January 2010
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment