Posted: Wed Jan 29, 2003 11:51 pm
Restored from previous forum. Originally posted by Kerfew.
Hey everyone else is far ahead of me. I haven't programmed since the ealry AMOS days, so I need a kick start.
I'm animating a sprite, and since I can't find a animation caller, I assume I'm doing it correctly. Well my way of correctly anyway. (quick and simple) My main problem is I can't recall how to use an array. Dim is the command I think, but I'm not following the examples out there.
Dim MyArray.l(41)
Dim MultiArray.b(NbColumns,NbLines)
Okay Dim is obvious, My/Multi is a name you assign, the content inside the brackets are the details given to the name, or amount of space allocated. But what does the .? part mean... Dim Blah.?(41) as an example.
I'm seeking to reduce or impove the LoadSprite() code shown below
LoadSprite(0, "paulosr1.bmp", 0)
LoadSprite(1, "paulosr2.bmp", 0)
LoadSprite(2, "paulosr3.bmp", 0)
LoadSprite(3, "paulosr4.bmp", 0)
LoadSprite(4, "paulosr5.bmp", 0)
LoadSprite(5, "paulosl1.bmp", 0)
LoadSprite(6, "paulosl2.bmp", 0)
LoadSprite(7, "paulosl3.bmp", 0)
LoadSprite(8, "paulosl4.bmp", 0)
LoadSprite(9, "paulosl5.bmp", 0)
Help!!!!
Kefrew
confused - dazed - but not dead
Hey everyone else is far ahead of me. I haven't programmed since the ealry AMOS days, so I need a kick start.
I'm animating a sprite, and since I can't find a animation caller, I assume I'm doing it correctly. Well my way of correctly anyway. (quick and simple) My main problem is I can't recall how to use an array. Dim is the command I think, but I'm not following the examples out there.
Dim MyArray.l(41)
Dim MultiArray.b(NbColumns,NbLines)
Okay Dim is obvious, My/Multi is a name you assign, the content inside the brackets are the details given to the name, or amount of space allocated. But what does the .? part mean... Dim Blah.?(41) as an example.
I'm seeking to reduce or impove the LoadSprite() code shown below
LoadSprite(0, "paulosr1.bmp", 0)
LoadSprite(1, "paulosr2.bmp", 0)
LoadSprite(2, "paulosr3.bmp", 0)
LoadSprite(3, "paulosr4.bmp", 0)
LoadSprite(4, "paulosr5.bmp", 0)
LoadSprite(5, "paulosl1.bmp", 0)
LoadSprite(6, "paulosl2.bmp", 0)
LoadSprite(7, "paulosl3.bmp", 0)
LoadSprite(8, "paulosl4.bmp", 0)
LoadSprite(9, "paulosl5.bmp", 0)
Help!!!!
Kefrew
confused - dazed - but not dead