function load()
Font = love.graphics.newFont(love.default_font, 20)
love.graphics.setFont(Font)
Tab = {}
Message = "Marlowe"
Number, ENumber = 200,300
for x = 1, string.len(Message) do
table.insert(Tab, {})
table.insert(Tab[1], string.sub(Message, x, x))
end
for i,v in ipairs(Tab) do
if (i == 1) then
v[1] = Number
v[2] = ENumber
v[3] = math.random(1,360)
else
v[1] = Tab[i - 1][1] + 20
v[2] = ENumber
v[3] = math.random(1,360)
end
end
end
function update()
for i,v in ipairs(Tab) do
v[3] = v[3] + 1
if (v[3] >= 360) then
v[3] = 0
end
end
end
function draw()
for i,v in ipairs(Tab) do
love.graphics.draw(v, v[1], v[2], v[3])
end
end
You're passing a table, v, as the first argument to draw, whereas I'm guessing you want a string.
If you pass Tab[1] instead, you should get something like: 200*, 300, a rapidly changing number
between 1 and 360, and then "lowe", all spinning really fast.
If you want "Marlowe", you would do something like (note: all untested)