Kelair Posted January 4, 2015 Share Posted January 4, 2015 Hello all, Leadwerks newb here trying to animate the crawler model. I've followed along with Jorn's tutorial here ( ), but can't seem to get it work the same way. The crawler when I push run looks like he is frozen in attack mode. After looking at the SimpleAnimation.lua script I think the settings are hard coded in, this is off a fresh install from steam. For parameters I'm using speed of 1 and sequence of 0 which should be idle according to the model editor. Can someone verify this default script to make sure it is right? Thanks! SimpleAnimation.lua Script.Speed=1.0--float Script.Sequence=0--int function Script:Draw() self.entity:SetAnimationFrame(8,1,4) --local t = Time:GetCurrent() --self.entity:SetAnimationFrame(t/100.0*self.Speed,1,self.Sequence) end Quote Link to comment Share on other sites More sharing options...
AggrorJorn Posted January 4, 2015 Share Posted January 4, 2015 if you uncomment the two lines and comment out the first SetAnimationFrame command you will get a continues animation of 1 sequence. Script.Speed=1.0--float Script.Sequence=0--int function Script:Draw() local t = Time:GetCurrent() self.entity:SetAnimationFrame(t/100.0*self.Speed,1,self.Sequence) end Quote Link to comment Share on other sites More sharing options...
Kelair Posted January 4, 2015 Author Share Posted January 4, 2015 Awesome thanks Jorn! Btw your videos are so helpful, thank you so much for making them. -Shawn 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.