News:

MFG's Character of the Month: October 2026 Voting

Main Menu

[SOLVED] Basic "END RUN" question

Started by DrStrange, December 28, 2009, 06:54:31 AM

Previous topic - Next topic

DrStrange

I am trying to simply add the end run animation to my character and it does not seem to be "reading" the animation.

In my sff I have the sprite files:
;Run Forward / Dash
100, 0, runf00.png,  22,45
100, 1, runf01.png,  22,45
100, 2, runf02.png,  22,45
100, 3, runf03.png,  22,45
100, 4, runf04.png,  22,45
100, 5, endrun00.png, 22,53
100, 6, endrun01.png, 22,53


And they are referenced correctly in the AIR file:

;Endrun
[Begin Action 101]
Clsn2: 1
 Clsn2[0] = -9, -40, 15, -2
100,5, 0,0, 4
Clsn2: 1
 Clsn2[0] = -12, -38, 12, 0
100,6, 0,0, 4
Clsn2: 1
 Clsn2[0] = -12, -33, 12, 0
11,1, 0,0, 6


But for some reason the character will not perform this action in game. Is there anywhere else I have to look?

Rajaa Retired

Did you actually CODE it in the statedef so that when your character stops running, it goes into a statedef with that animation? Just because you add some sprites to the .sff and make an animation, doesn't mean that it's in the character just like that. You need to code it if you haven't already.

DrStrange

That was the problem. I was using KFM as a default for my cns file and assumed it was already in there. I made the adjustment and now it works.

Thanks for the quick response.