Page 1 of 1

Animation Vibration

PostPosted: Thu Aug 09, 2012 5:40 pm
by erfan71
Hi
I have a bad problem!
first download my attachment.
in this simple game you see a Player that walk Without any movement!
until now everything is OK!
but when i put right arrow key down to walk right you see the leg of my player starts to vibration ? do you see?
I don't know why? if problem relates to my animation, but why when player is static this problem doesn't happen!!
can any one help me?
Please. :|

Re: Animation Vibration

PostPosted: Thu Aug 09, 2012 8:49 pm
by Soullem
Try setting the animation to no change
Code: Select all
ChangeAnimation("Player","WalkRight",NO_CHANGE)

Re: Animation Vibration

PostPosted: Fri Aug 10, 2012 3:02 pm
by erfan71
Hi
but if you see my code realize that i currently use this Method

i mean i write NO_CHANGE.

what is the problem???
please help me

Re: Animation Vibration

PostPosted: Fri Aug 10, 2012 7:06 pm
by AliceXIII
what do you mean the leg vibrates i don't see the leg vibrating??

tried it several times with no problem his animation seems fluid enough..

Re: Animation Vibration

PostPosted: Sat Aug 11, 2012 6:47 am
by erfan71
just put down Right Arrow Key and then focus on Right foot of my Hero?
Do You See That؟
if you don't see that tell me to show you on a picture.
thanks. :?

Re: Animation Vibration

PostPosted: Sat Aug 11, 2012 7:07 am
by AliceXIII
man either you have really good eyes or mine are bad cause i've stared at it for awhile and don't see a problem, could just be me looks fine to me but you can show me in a pic if you want :)

Re: Animation Vibration

PostPosted: Sat Aug 11, 2012 8:03 am
by erfan71
Ok.:D
i send you a picture.
thanks.

Re: Animation Vibration

PostPosted: Sat Aug 11, 2012 9:09 pm
by AliceXIII
It's most likely caused by your animation not being lined up see i was paying attention to the right foot so much i overlooked that if you watch him when he's walking without movement his entire body moves back a couple pixels easily noticed if you watch his head, so while his whole body actually moves back a couple pixels on top of moving forward so many pixels with the key down it would cover most of it up except for the foot..

this is all just an idea i have maybe try aligning all the images up? :)

Re: Animation Vibration

PostPosted: Sun Aug 12, 2012 7:06 am
by erfan71
oh! very nice!

but i don't understand last Sentence you write, what do you mean about aligning pictures up?

Re: Animation Vibration

PostPosted: Sun Aug 12, 2012 4:32 pm
by Soullem
Lets say that your walk animation has 8 frames in it. The animation sheet you inputted it from is divided into 8 sections. What I do is on MS paint is find the longest of all the frames (ill just say its 50) and extend the page to be the number of frames times(8) the longest frame(50), so its 400 pixels long. Then put the left most pixel on all of the individual pictures at the start of their section. so the first one starts at 1, the 2nd at 50, 3rd at 100, and so on.

Hopefully it will work for you...