I have an array. The Array is of Type TTile. TTile has an image field and a frame field.
if Array[x,y].frame = 0
DrawBomb , blah, blah, 0
if Array[x,y].frame = 1
DrawBomb , blah, blah, Frame
Frame:+1
Now, what I want to do is to have the frame update seperately for each Bomb when the mouse is on it.
So, if there are 5 bombs in a row and I move the mouse on the first bomb, I want its frame to update. When I move the mouse on the second bomb I want it frame to update but from the begining. The first Bombs frame could be half way through and when I start the second bombs frame it starts from the begining for the second bomb.
Currently I create a bomb wherever there is one in the array by using "local b:bomb = new Bomb.
then I assign the frames "b.frame = 0" and timer "b.Timer = millisecs()"
am I making sense?
[edit] It's 4 am here in London and I'm still up. I'm watching StarTrek the Motion Picture and trying to code a game with the new platform skills I've been tought :)
if Array[x,y].frame = 0
DrawBomb , blah, blah, 0
if Array[x,y].frame = 1
DrawBomb , blah, blah, Frame
Frame:+1
Now, what I want to do is to have the frame update seperately for each Bomb when the mouse is on it.
So, if there are 5 bombs in a row and I move the mouse on the first bomb, I want its frame to update. When I move the mouse on the second bomb I want it frame to update but from the begining. The first Bombs frame could be half way through and when I start the second bombs frame it starts from the begining for the second bomb.
Currently I create a bomb wherever there is one in the array by using "local b:bomb = new Bomb.
then I assign the frames "b.frame = 0" and timer "b.Timer = millisecs()"
am I making sense?
[edit] It's 4 am here in London and I'm still up. I'm watching StarTrek the Motion Picture and trying to code a game with the new platform skills I've been tought :)