A bit of sprite trouble.

Non-platform specific questions.

A bit of sprite trouble.

Postby Bannock » Sun Dec 02, 2007 8:26 am

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
Attachments
BonesTest.rar
(1.31 MiB) Downloaded 107 times
User avatar
Bannock
 
Posts: 20
Joined: Tue Sep 11, 2007 7:59 am
Score: 2 Give a positive score

Re: A bit of sprite trouble.

Postby Spidy » Sun Dec 02, 2007 8:47 am

maybe there is some error in your slashright or slashleft animation
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: A bit of sprite trouble.

Postby Bannock » Sun Dec 02, 2007 9:56 am

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.
User avatar
Bannock
 
Posts: 20
Joined: Tue Sep 11, 2007 7:59 am
Score: 2 Give a positive score

Re: A bit of sprite trouble.

Postby Spidy » Sun Dec 02, 2007 9:59 am

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
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: A bit of sprite trouble.

Postby j2graves » Sun Dec 02, 2007 2:07 pm

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.
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: A bit of sprite trouble.

Postby Spidy » Sun Dec 02, 2007 2:56 pm

yeah right j2grave but i hate to create char in vertical pos i make his seperate pics
Image
VOTE FOR MY SIGNATURE PLEASE.......THANK YOU
User avatar
Spidy
 
Posts: 935
Joined: Tue Aug 14, 2007 1:28 pm
Location: http://www.inatonibai.com
Score: 38 Give a positive score

Re: A bit of sprite trouble.

Postby j2graves » Sun Dec 02, 2007 3:01 pm

Spidy wrote:yeah right j2grave


:?: do you mean it "yes you're right" or sarcastically?
No games to my name...
User avatar
j2graves
 
Posts: 1302
Joined: Thu Aug 16, 2007 6:42 pm
Location: on the other side of infinity
Score: 19 Give a positive score

Re: A bit of sprite trouble.

Postby Fuzzy » Sun Dec 02, 2007 5:38 pm

If the centers of each actor frame dont match, then you get the illusion of a tiny jump.
Mortal Enemy of IF....THEN(and Inspector Gadget)

Still ThreeFingerPete to tekdino
User avatar
Fuzzy
 
Posts: 1068
Joined: Thu Mar 03, 2005 9:32 am
Location: Plymostic Programmer
Score: 95 Give a positive score

Re: A bit of sprite trouble.

Postby Bannock » Mon Dec 03, 2007 6:40 am

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.
User avatar
Bannock
 
Posts: 20
Joined: Tue Sep 11, 2007 7:59 am
Score: 2 Give a positive score


Return to General

Who is online

Users browsing this forum: No registered users and 1 guest

cron