Hi all,
Why won't this correctly draw my 2 seperate images at the desired co-ordinates on screen? (I've cut out the peripheral code which doesn't affect this, of course).
I have over 150 items of this type that will eventually be in this array, but want to get it right before I arduously populate the objects. ;)
Type typ_lamp Global x:Int=0 'lamp x position on the screen Global y:Int=0 'lamp y position on the screen Global lamp:Int=0 'lamp item identifier Global state:Byte=0 'lamp on/off state Global alpha:Byte=0 'lamp alpha level Global alphadir:Byte=0 'lamp alpha direction (fade in / fade out) End Type
arr_lamps[1].x=232 arr_lamps[1].y=602 arr_lamps[1].lamp=37 arr_lamps[2].x=601 arr_lamps[2].y=1154 arr_lamps[2].lamp=16
For Local a:Int=1 To 2 DrawImage gfx_lamps,arr_lamps[a].x,arr_lamps[a].y,arr_lamps[a].lamp Next
Why won't this correctly draw my 2 seperate images at the desired co-ordinates on screen? (I've cut out the peripheral code which doesn't affect this, of course).
I have over 150 items of this type that will eventually be in this array, but want to get it right before I arduously populate the objects. ;)