Animation

All about the StoneScript

Animation

Postby unistudios » 2017-02-13 05:42

I am using states for my animations like Idle (idle, walk, run), and Crouch (CrouchIdle, CrouchWalk). when I change the state Idle to Crouch I use ;

animation.setCurrentClip ( this.getObject ( ), 0, 4 )

But animation change so fast and doesn't look well, is there a way to change the animation more smooth?
unistudios
Fresh Boarder
Fresh Boarder
 
Posts: 10
Joined: 2016-07-01 07:57

Re: Animation

Postby Shaderman » 2017-02-13 07:42

You want to blend animations. Check out the iPhone character control example to see how it works.

Further reading
http://www.shiva-engine.com/doc/api/ani ... BlendMode/
http://www.shiva-engine.com/knowledgeba ... on-system/
User avatar
Shaderman
Platinum Boarder
Platinum Boarder
 
Posts: 660
Joined: 2012-03-24 11:33
Location: Heidelberg, Germany

Re: Animation

Postby Mcculley » 2017-11-19 12:29

I was wondering about this as well. Great resources, thanks for the info.
Mcculley
Fresh Boarder
Fresh Boarder
 
Posts: 1
Joined: 2017-11-06 10:47


Return to Game programming

Who is online

Users browsing this forum: No registered users and 12 guests

cron