Hello guys! I tried to reproduce the intro from Zelda Roth and got this error: line 27:31 >
The code:
It's the same code maked by Christopho's, Just change quantitis on for. What's wrong with it?
Code Select
Error: In maps/intro: [string:"maps/intro.lua"]:33: attempt to index a nil value
The code:
Code Select
-- Frescos.
local frescos = {}
for i = 1, 5 do
frescos[i] = sol.surface.create("menus/intro/intro" .. i .. ".png")
frescos[i]:set_xy(0, 16)
end
It's the same code maked by Christopho's, Just change quantitis on for. What's wrong with it?