| View previous topic :: View next topic |
| Author |
Message |
the underminer
Joined: 03 Oct 2005 Posts: 124 Location: Netherlands
|
Posted: Sat Sep 23, 2006 6:22 pm Post subject: storing loaded images in tables |
|
|
Can someone tell me...
Why this doesn't work:
| Code: |
DoorAnimation = Image.load("./animation/door.png")
EnemyAnimation = {DoorAnimation}
-- and then blitting using EnemyAnimation[1] as image source |
... while this does work:
| Code: |
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 |
|
| Back to top |
|
 |
romero126
Joined: 24 Dec 2005 Posts: 200
|
Posted: Sat Sep 23, 2006 6:58 pm Post subject: |
|
|
| table.insert |
|
| Back to top |
|
 |
|