Animations Starting On Wrong Frame #

Non-platform specific questions.

Animations Starting On Wrong Frame #

Postby happyjustbecause » Fri Aug 03, 2012 4:38 pm

Hello gE community, if someone could help me out with this very frustrating problem, I would be very appreciative! Throughout working on my game, I've constantly been dealing with this very annoying problem. Nearly every time my player starts an animation, he will start on the last frame, then jump to the first frame and play all the way through except the last frame. So if there's an animation that is five frames, he will start on the 5th, go to the 1st, 2nd, 3rd, and end on the 4th. This is obviously wrong.

This problem can be extremely annoying for certain animations. Animations like throwing always start off with his arm being in the wrong place... And I don't know why this problem is occurring, but I need to get it fixed. I use the state method for all my player's animations, and with all my functions for ChangeAnimation, I have FORWARD set. All my sprite sheets look similar to other people's, and even if my sprite sheets were weird, gameEditor shouldn't start it off on the last frame.

Does anyone have any idea what this problem is? Please help me with this, I really want to get this solved once and for all.
For small creatures such as we the vastness is bearable only through love.
-Carl Sagan

Night Knight Development Thread
User avatar
happyjustbecause
 
Posts: 267
Joined: Tue Jul 26, 2011 3:10 pm
Location: Frazier Park, Ca
Score: 15 Give a positive score

Re: Animations Starting On Wrong Frame #

Postby AliceXIII » Fri Aug 03, 2012 5:05 pm

try using the NO_CHANGE state instead of the FORWARD state?

i never really use the FORWARD state!

if it doesn't work let me know, im more than willing to look over it for you if it comes down to it :)
"Taking a breath of fresh air."
User avatar
AliceXIII
 
Posts: 325
Joined: Fri Sep 17, 2010 2:36 am
Location: victoria, texas
Score: 37 Give a positive score

Re: Animations Starting On Wrong Frame #

Postby happyjustbecause » Sat Aug 04, 2012 3:29 pm

So far the game seems to be working with NO_CHANGE. What does FORWARD do? And what does NO_CHANGE do? Does NO_CHANGE continue off of whatever frame number the last animation was on, so if you're in the middle of an animation like frame 5, and the animation changes, will it jump to the fifth frame in the next animation? I'm not sure if it does that, maybe it just means that the sprite sheet runs correctly like there's no change with the sprite sheet's order.

Thanks for the help though!
For small creatures such as we the vastness is bearable only through love.
-Carl Sagan

Night Knight Development Thread
User avatar
happyjustbecause
 
Posts: 267
Joined: Tue Jul 26, 2011 3:10 pm
Location: Frazier Park, Ca
Score: 15 Give a positive score

Re: Animations Starting On Wrong Frame #

Postby AliceXIII » Sat Aug 04, 2012 4:23 pm

NO_CHANGE is for when you want to change an animation without resetting the current frame!

and your welcome im glad to help :)
"Taking a breath of fresh air."
User avatar
AliceXIII
 
Posts: 325
Joined: Fri Sep 17, 2010 2:36 am
Location: victoria, texas
Score: 37 Give a positive score

Re: Animations Starting On Wrong Frame #

Postby Fojam » Sat Aug 04, 2012 5:32 pm

FORWARD fixes the problem
CLICK TO GIVE ME POINTS

My Latest Projects:
Super Smash Bros: viewtopic.php?f=6&t=12307 PLEASE help by making sprites!
User avatar
Fojam
 
Posts: 513
Joined: Thu Mar 19, 2009 10:02 pm
Location: under your bed!!!
Score: 69 Give a positive score

Re: Animations Starting On Wrong Frame #

Postby AliceXIII » Sat Aug 04, 2012 5:36 pm

FORWARD fixes the problem


actually the FORWARD state was what was giving him problems, the NO_CHANGE state fixed it :P
"Taking a breath of fresh air."
User avatar
AliceXIII
 
Posts: 325
Joined: Fri Sep 17, 2010 2:36 am
Location: victoria, texas
Score: 37 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron