Vaelek Posted January 14, 2015 Share Posted January 14, 2015 While fighting with learning how animation works in here, I finally discovered this when looking at the SimpleAnimation.lua... 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 Clearly that does not work. Link to comment Share on other sites More sharing options...
nick.ace Posted January 14, 2015 Share Posted January 14, 2015 You shouldn't be using the beta for learning. In fact, I know a lot of people like to opt into the beta, but you really shouldn't unless you really need a certain feature or want to help test. Anyway, what do you mean that this doesn't work? It looks fine to me. It'll just stay on animation frame 8 the whole time though, so nothing will look like it's animating. Link to comment Share on other sites More sharing options...
Vaelek Posted January 14, 2015 Author Share Posted January 14, 2015 I don't remember what it was, but something was broken in the release that has been fixed in the beta that was affecting my project. I do have a coding background (just not in Lua) and do love to help test things, so opting in is just in my nature. I understand the possible complications and those more experienced with LW than I seem to be pretty active in here at reporting issues so I've been keeping up pretty well on that front. As far as this script goes, I have to assume that line was added and the rest commented during testing and forgot to be changed back. The script variables are ignored, and it's locked in to frame 8 of sequence 4. Definitely not drop in friendly. As it's a basic beginner and testing script I don't imagine it's got much visibility and Josh wouldn't want it to go unnoticed when it comes time to push out the next release so I stand by my report. 1 Link to comment Share on other sites More sharing options...
Josh Posted February 2, 2015 Share Posted February 2, 2015 Thank you. Sorry for the mistake. 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...
Recommended Posts