Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

DarkBASIC Professional Discussion / Having trouble with animation...

Author
Message
DB_Newbie
16
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 12th Jun 2010 08:35
Hi all,

I have a character with a idle, walk and jump animation but something is not right.

First of all, here is the code (with the necessary files attached):



When you walk the character left or right, he plays the walk animation and when you "jump from a walk" he plays the jump animation.

However, if he stands still, he doesn't play his idle animation and if you jump from an idle position (i.e. without moving) then his jump animation won't play.

I can't figure out why it doesn't want to play his idle and jump animation. I thought it was because maybe I done the keyframes wrong. But if I replaced the walk keyframes with the idle keyframes, then the character will move while playing his idle animation. So the keyframes are all correct.

Can anyone figure this out?

BTW, here is the list of animation:

Walk: 0 - 32
Jump: 33 - 60
Idle: 61 - 101
DB_Newbie
16
Years of Service
User Offline
Joined: 4th Aug 2009
Location:
Posted: 13th Jun 2010 10:23
Bah, finally figured it out.

I just had to take this line out since it constantly set the object frame to 0.

Login to post a reply

Server time is: 2026-07-25 16:20:01
Your offset time is: 2026-07-25 16:20:01