Merries Posted December 18, 2016 Share Posted December 18, 2016 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! Quote 3D Game Asset Artist Link to comment Share on other sites More sharing options...
Josh Posted December 18, 2016 Share Posted December 18, 2016 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. 1 Quote 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 More sharing options...
Merries Posted December 18, 2016 Author Share Posted December 18, 2016 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! Quote 3D Game Asset Artist Link to comment Share on other sites More sharing options...
Josh Posted December 18, 2016 Share Posted December 18, 2016 Yeah, the tutorial here explains how to attach a script. The animation script will work in the exact same way: http://www.leadwerks.com/werkspace/page/tutorials/_/lua-scripting-r12#section8 Quote 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 More sharing options...
Merries Posted December 18, 2016 Author Share Posted December 18, 2016 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. Quote 3D Game Asset Artist Link to comment Share on other sites More sharing options...
Recommended Posts
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.