Trouble with Animating a Sprite

Started by
4 comments, last by MLillowitz 12 years ago
Hi, guys!
I'm new to forums in general, so let me know if I have done something wrong.

I am working on a game with a top down view,
its in 2d and the player sprites (among others) are cut up in separate pieces (torso, arms, legs, etc..).
However I am having trouble animating the up and down movement. Have you guys got any ideas?

thanks in advance.
Advertisement
I think you'll need to post some more info on how you do it and perhaps some source code on where you are stuck/that doesn't work.

In the meanwhile. A simple google on "2D Skeletal animation" gave enough hits with samples that might help you fix your problem. For example: http://www.catalinzima.com/2011/06/2d-skeletal-animations/
Thanks for the reply that post highlights my problem very well.
The movement is left to right, it said nothing about up and down (facing the 'camera')

LostIslandSpriteAnimation.PNG
This is a screenshot from my game with the character (place-holder sprite) moving up. How will I animate that with 2D skeletal animation?
Or should I just use sprite-sheets? Sorry if i am not clear.
I've never used 2D skeletal animation myself, so I'm not sure if it is possible in topdown, or maybe just not in the general way. Instead of moving an arm, for example, from left to right (mostly move the X component and some of the Y component) you would want to move up and down, but not that much so you can create the illusion of a swaying arm (so moving only the Y component up and down). I'm not sure if this will work, but that's a general thought that pops up in my head if I would face this problem.

As for spritesheets. Those are valid and maybe a better solution depending on what you want to do. If you just want to have a walking motion in 4 ways, you can get away with a couple of frames to animate movement and perhaps a couple of attack frames. The nice thing about 2D skeletal animation is that you don't have the draw every frame yourself (as in, really drawing, nothing to do with rendering) while with a spritesheet, you'll need draw every animation frame, so you can understand that with a lot of different animations, you'll end up with big spritesheets and an artist doing a lot of work.

So, check how much you want to do and what will be the most viable option, if your artist doesn't matter drawing all the frames of every animation frame, go for it. I don't think I'm able to help you any further than that though. Perhaps someone with more experience in 2D skeletal animation can help you out here.
Up and down was the only solution I could think of. It doesn't look too realistic but it will do, at least for now.
I also have no artist and I am not very good myself. But the main reason I chose skeletal animation is to make skinning
armour and accessories on the character easier. I'll think of something and post back here with the results for whoever is interested.
Thanks for the help reloaded.
Hi, Kinger.

I would like to get in contact with you, Kate.

I will add you now regarding your service/offer.

Please mind my inconvenience OP. I will help you in a bit.

- Mikey

This topic is closed to new replies.

Advertisement