-
Posts
3 -
Joined
-
Last visited
Content Type
Blogs
Forums
Store
Gallery
Videos
Posts posted by Kelair
-
-
Awesome thanks Jorn! Btw your videos are so helpful, thank you so much for making them.
-Shawn
-
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
Duplicated Object : Script Entity not copied
in Leadwerks Engine Bug Reports
Posted
I'm quite new to Leadwerks so forgive me if this was always the way, but I believe this same thing happens when you make a prefab from an entity that had a script attached with an entity object loaded in a entity variable. Adding said Prefab back into the scene will have the script loaded but the entity variable is blank.
This is with the latest Beta.