🤑 Indie game store🙌 Free games😂 Fun games😨 Horror games
👷 Game development🎨 Assets📚 Comics
🎉 Sales🎁 Bundles

Code snippet - animated wavy text

A topic by greygolem created Mar 30, 2017 Views: 190 Replies: 2
Viewing posts 1 to 3
(Edited 2 times) (+1)

function wave(text, x, y, amp)

for i=1, #text do

local c = text:sub(i, i)

print(

c,

x+i*6,

y + amp*math.sin((time()+i*60)/180)

)

end

end

I like it! =)

Awesome good fun, thanks!