error: script.lua4: attempt to call global 'pidle' (a nil value)
I've been coding for about 4 months in Visual Basic.. Lua seems like an easy language, but I'm still learning. Bear with me. =]
Code: Select all
-- Animation Test
-- variables
pidle {}
-- graphics
pidle[1] = Image.load("gfx/pidle1.png")
pidle[2] = Image.load("gfx/pidle2.png")
pidle[3] = Image.load("gfx/pidle3.png")
pidle[4] = Image.load("gfx/pidle4.png")
pidle[5] = Image.load("gfx/pidle5.png")
-- animation
while true do
for x=1,5 do
screen:blit(200, 100, pidle[x])
screen:flip()
screen.waitVblankStart(3)
end
end