Hi!
Quick question. i don’t really need an update function except for one animation where a triangle changes height according to the x scale of another shape. Right now, i have an update function which has something like (pseudo code):
function update(self,dt)
local height = math.acos(self.x_scale)
gui.set_size(self.triangle, vmathvector(300, height, 1))
end
Could i eliminate this by having something like this?
local function triangleanim()
if triangleanimating = true then
local height = math.acos(self.x_scale)
gui.set_size(self.triangle, vmathvector(300, height, 1))
triangleanim()
end
end