GPWiki.org
GPWiki.org
It is currently Thu May 23, 2013 5:29 am

All times are UTC




Post new topic Reply to topic  [ 5 posts ] 
Author Message
 Post subject: Character Animation
PostPosted: Fri Mar 28, 2008 6:28 pm 
Gamer Geek

Joined: Thu Jul 19, 2007 7:25 pm
Posts: 36
I am really annoyed. I am making a 2D sidescrolling game and I am having trouble getting my main characters running animation to look right... If anyone here is an artist, can you help me?

I am using the Generic Reploid Construction System to draw my character. I use paint and Adobe Photoshop Elements 2.0 ( Really old, I know ) and I work with PNG files.

I got msn and aim, and I can get on IRC if need be.

_________________
~RisingForce


Top
 Profile  
 
 Post subject:
PostPosted: Fri Mar 28, 2008 7:08 pm 
Dexterous Droid

Joined: Fri Aug 19, 2005 10:34 am
Posts: 3650
Try seeing if these help. They're what I used to make my little digital dude walk:

http://www.webdesign.org/web/3d-graphic ... s.624.html
http://www.idleworm.com/how/anm/02w/walk1.shtml

_________________
NetGore - Open source online RPG engine


Top
 Profile  
 
 Post subject:
PostPosted: Fri Feb 05, 2010 1:26 pm 
Shake'n'Baker
User avatar

Joined: Fri Feb 05, 2010 1:11 pm
Posts: 52
Location: MiddleEurope
I am more artist than programmer and from my own experience, I would maybe recommend you to have as much files as frames for the anim, just for the start.

example: you have 11 frames for walk-cycled anim. You'll export all these 11 frames to 11 files and name them by some index, e.g. walkanim_1, walkanim_2... Make sure they all are cropped and one size.

Then use your programming script language that copies the bitmap to screen.
I, personally don't use anything else than Macromedia Director. Well, I am not a professional programmer, just an amateur, LOL.
But the principles are always the same, I would say. Animation in programming is nothing more than just copying & pasting pixels from source images to stage with some timer.
try something like this:

FrameTimer = 1

*** looped sequence starts *** - this will be your looped procedure

repeat with x = 1 to 11

if FrameTimer = x then
COPYPIXELS(to stage where you want to see it) FROM YOURANIMATIONFRAME(FrameTimer)

end if

end repeat

FrameTimer = FrameTimer + 1

if FrameTimer > 11 then FrameTimer = 1

*** looped sequence ends ***

sorry for my Macromedia-like script statements. I think you'll find some counterpart for it in your programming language.

----addition

The better way to work with bitmap gfx into you game, that will be animated, you'll need to use filmstrips - this is the method being used by possibly most bitmap graphics games, platformers, even possibly RTSes and RPGs.
Now, what is the filmstrip? e.g. you have a large bitmap file composed of exact frames of the same length - e.g. 40*72 pixels (that would be tall character). And into this format, you'll get your stand animation, walk animation, attack animation, and whatever. Now, the frames will go from 1 to the last in the filmstrip.

You need something like this:

Image


Top
 Profile  
 
 Post subject: Re: Character Animation
PostPosted: Sat Apr 16, 2011 9:12 am 
Bit Baby

Joined: Sat Apr 16, 2011 8:44 am
Posts: 8
heres what i find helps... when animating it is key to find a ref and study it....

In the case of a looping animation (walk cycle...) your first and last frame will only be one frame apart... so its important to know that....

so anyway.. from there youll want to find your first, last, and half position. and draw them.
for example your first will be the right legg forward totally extended... your last will be the same.. - 1 frame, and the middle will be the complete mirror of the first... which shouldnt be too hard. From there you fill in the tween frames. In the middle of each set will be one leg up aking a step and one leg on the ground. The mirror for the other side... then from there fill in tweens. Anyway: this can be applied to any action your familiar with. So i say watch nat geo, ppl running, doing sports, animals.... anything to familiarize yourself with actions and their dynamics...


Top
 Profile  
 
 Post subject: Re: Character Animation
PostPosted: Sat Jun 11, 2011 10:07 pm 
Gamer Geek

Joined: Mon Apr 06, 2009 1:55 pm
Posts: 28
Location: Waterloo Ontario Canada
I posted a video tutorial here: http://www.marek-knows.com/downloads.php5?vmk=opengl

that shows you how to create an animated walk cycle. Have a look.

_________________
3D OpenGL, C++ Game Development Video Tutorials @
www.marek-knows.com


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
cron
Powered by phpBB® Forum Software © phpBB Group