Page 1 of 1

sprite jumping on expression change

Posted: Fri Jul 27, 2012 9:54 pm
by slyfoxxy
EDIT - I solved the problem by putting him in the center but is there any way to prevent this problem if he is on the side?


Hi there I'm just needing help with the fact that my sprites keep jumping once I change from their original neutral position to another expression, for example:

Starting position neutral:

Image

to surprised -

Image

and from surprised to grin it doesnt move -

Image

but when I put it back to neutral it goes back to the original position -

Image


my code is just -

show rein neutral at left with moveinleft

then the text then

show rein surprised

text

show rein grin

text

show rein neutral

his is the only one that does it too, could it be png/sprite size? I don't know because they are all the same size...

Re: sprite jumping on expression change

Posted: Sat Jul 28, 2012 3:25 am
by Alex
Check on your sprites for "rein"- are they match eachother or "rein surprised" has more transparent canvas at left.

Re: sprite jumping on expression change

Posted: Sat Jul 28, 2012 5:57 am
by slyfoxxy
they are all the same, and if I put him in the center instead of to the left or right it works fine, his sprite is the only one that does it as well so I dont know what it could be.

Re: sprite jumping on expression change

Posted: Sat Jul 28, 2012 7:03 am
by Alex
It's ok to put them in the center, 'cause there are enough free space onscreen to show them (the centers of both images are the same and sides might not match), but when you put them to the left side of screen, then images are placed with their left sides at the same place and it causes the "move aside" effect. Could you post your sprites?

Re: sprite jumping on expression change

Posted: Sat Jul 28, 2012 8:22 am
by Levrex
If that's the case, you can simply re-define all the positions. Albeit i don't think that's the case.

Code: Select all

$ left = Position(xpos=0.25, xanchor='center')
$ center = Position(xpos=0.5, xanchor='center')
$ right = Position(xpos=0.75, xanchor='center')
Of course, that will only work properly for all sprites if all the sprites have the same stance, i.e. faced towards you or another only direction.