I’m trying to create a glitch effect with a label.
Here’s my code:
function init(self)
go.animate("child", "position.x", go.PLAYBACK_LOOP_FORWARD, 500, go.EASING_LINEAR, 4)
go.animate("child", "position.y", go.PLAYBACK_LOOP_FORWARD, -500, go.EASING_LINEAR, 2)
for i = 1,16 do
timer.delay(i/16, true, function() local dude = go.get_position("child") go.set_position(vmath.vector3(dude.x, dude.y, 0.001), "child"..i) end)
end
end
And here’s what it looks like.
Hopefully the problem is clear: I want a more regular glitch effecting where the distance between each instance of the label is the same.