Page 1 of 1

A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 8:26 am
by Bannock
I feel really incompetent asking this, but in a small game I'm making I have the player actor using two attacks (at the moment). One is a thrust, which works just fine. The other is a slash attack, and it doesn't work fine. At the end of the slash animation the player actor seems to teleport into the air a little bit, for what seems to be no reason.
I've scoured my script, and I've tweaked with the animation to no end.
Nothing I have tried solves this problem.
So, if anyone would care to take a look and offer their insight, it would be appreciated.

Controls for this work in progress are:
x ------- Slash
c - ----- Thrust
Space - Jump
Shift -- Speedier Movement

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 8:47 am
by Spidy
maybe there is some error in your slashright or slashleft animation

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 9:56 am
by Bannock
I have checked the animations themselves quite thoroughly, I'm afraid, though I thank you for the suggestion.
I've checked the animation in the add/edit animation section, and it works fine there, too.

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 9:59 am
by Spidy
do not create vertical sprite pic because i created sprite in vertical there is an error there fore now i create seperate pic when u create seperate sprite and add in ge there is a option single file change it multiple files

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 2:07 pm
by j2graves
if the animation you made has a space between the bottom side of the actor and the bottom of the picture, it will cause him to appear to fly upward a bit.

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 2:56 pm
by Spidy
yeah right j2grave but i hate to create char in vertical pos i make his seperate pics

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 3:01 pm
by j2graves
Spidy wrote:yeah right j2grave


:?: do you mean it "yes you're right" or sarcastically?

Re: A bit of sprite trouble.

PostPosted: Sun Dec 02, 2007 5:38 pm
by Fuzzy
If the centers of each actor frame dont match, then you get the illusion of a tiny jump.

Re: A bit of sprite trouble.

PostPosted: Mon Dec 03, 2007 6:40 am
by Bannock
I thank everyone for their help, but I'm afraid I'm still not sure what it was. My sprites were perfectly aligned...
It appears that even though two different sets of sprite animation were almost the same, one displayed in game at about 40 pixels lower than the rest, for what seems to be no reason at all. You can check in the data, if you want.
I solved the problem by making it a horizontal animation and just adding 40 transparent lines of pixels to the bottom.