Jump to content

App.cpp and Animation Manager.lua


Merries
 Share

Recommended Posts

Watching some video tutorials from 2013 on setting up the animation of a player character. In the video, he makes some coding additions in the App.cpp file.

 

 

Keeping in mind coding is a challenge for me, though I'm learning so much more in Lua then I have in the past.

 

Would you still add these functions in the App.cpp file to get a character animating and what is the uses for the Animation Manager script?

 

Thank you!

3D Game Asset Artist

Link to comment
Share on other sites

As of 4.2, we no longer use the animation manager script (although if your project was using this before, there is nothing stopping you from continuing to use this approach). This functionality has been built into the engine. Two new commands have been added to the engine:

http://www.leadwerks.com/werkspace/page/api-reference/_/entity/entityplayanimation-r918

http://www.leadwerks.com/werkspace/page/api-reference/_/entity/entitystopanimation-r919

 

These can be called at any time. The "Animation\SimpleAnimation.lua" script is the easiest way to handle this.

 

The PlayAnimation function will handle animation updating for you, so you only have to call it once. It also handles transitions between animations automatically.

  • Upvote 1

My job is to make tools you love, with the features you want, and performance you can't live without.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...