Dralel Posted December 30, 2015 Share Posted December 30, 2015 Scripting is hard, I've tried everything to create a simple idle animation for the player character. I've imported the model and animation and put it in an extracted sequence of 0 - 59 frames. It looks good in the model viewer! How do I go about importing the animation manager into my character's script and start creating modes such as "idle", "walk", etc? This is really confusing... Quote Link to comment Share on other sites More sharing options...
Slastraf Posted December 30, 2015 Share Posted December 30, 2015 I suggest you to take a look at the mosterAi script which comes by default in the shooter project , things like walk and idle can be used from there. Quote Link to comment Share on other sites More sharing options...
cassius Posted December 30, 2015 Share Posted December 30, 2015 JUst check out the animation commands and examples in api referece.if you have the sequence number you only need one further line of code. in c++ model->SetAnimationFrame(Time::GetCurrent() / 26.0, 1, sequence); Quote amd quad core 4 ghz / geforce 660 ti 2gb / win 10 Blender,gimp,silo2,ac3d,,audacity,Hexagon / using c++ Link to comment Share on other sites More sharing options...
Dralel Posted December 31, 2015 Author Share Posted December 31, 2015 Ahhh I got it working now, I had to put the script in UpdateWorld() and put the number sequence the animation belongs to in it as well, thanks. Quote 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.