Jump to content

  • Log In with Google      Sign In   
  • Create Account


Trouble with Animating a Sprite


Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.

  • You cannot reply to this topic
5 replies to this topic

#1 ehawk   Members   -  Reputation: 99

Like
-1Likes
Like

Posted 24 March 2012 - 04:30 AM

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.

Sponsor:

#2 Rld_   Members   -  Reputation: 1383

Like
0Likes
Like

Posted 24 March 2012 - 04:39 AM

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/

#3 ehawk   Members   -  Reputation: 99

Like
0Likes
Like

Posted 24 March 2012 - 03:49 PM

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')

Posted Image
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.

#4 Rld_   Members   -  Reputation: 1383

Like
0Likes
Like

Posted 26 March 2012 - 01:51 AM

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.

#5 ehawk   Members   -  Reputation: 99

Like
0Likes
Like

Posted 26 March 2012 - 02:40 AM

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.

#6 MLillowitz   Banned   -  Reputation: 23

Like
0Likes
Like

Posted 02 April 2012 - 11:14 PM

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




Old topic!
Guest, the last post of this topic is over 60 days old and at this point you may not reply in this topic. If you wish to continue this conversation start a new topic.



PARTNERS