storing loaded images in tables

Discuss using and improving Lua and the Lua Player specific to the PSP.

Moderators: Shine, Insert_witty_name

Post Reply
the underminer
Posts: 123
Joined: Mon Oct 03, 2005 4:25 am
Location: Netherlands

storing loaded images in tables

Post by the underminer »

Can someone tell me...
Why this doesn't work:

Code: Select all

DoorAnimation = Image.load("./animation/door.png")
EnemyAnimation = {DoorAnimation}
-- and then blitting using EnemyAnimation[1] as image source
... while this does work:

Code: Select all

DoorAnimation = Image.load("./animation/door.png")
EnemyAnimation = {Image.load("./animation/door.png")}
-- and then blitting using EnemyAnimation[1] as image source
Th
Behold! The Underminer got hold of a PSP
romero126
Posts: 200
Joined: Sat Dec 24, 2005 2:42 pm

Post by romero126 »

table.insert
Post Reply