Jump to content

App.cpp and Animation Manager.lua

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!

Share this post

Link to post

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:




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.

Share this post

Link to post

I'm new to the engine so the previous project does not apply, thank you for the answer, Do you have a walkthrough of how to use this? Thanks!

Share this post

Link to post

Oh thank you I did go over that tutorial and know how to attach a script, I was referring to character animations, I didn't make that clear, sorry about that.

Share this post

Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

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.

  • Create New...