Hi Guys,
I'm having problems moving a bitmap around like a box can you help me please.
I already know how to move around images, boxes, and stuff. I need to move bitmap though.
Here's the code.
sync on
global oldTx as integer
global oldTy as integer
global tx as integer
global ty as integer
rem create bitmap to use
create bitmap 1,100,100
box 0,0,64,64
rem bitmap vlaues
tx = 0
ty = 0
oldTx = tx
do
rem move the bitmap right
tx = tx + 1
rem if bitmap greater then 400 then move it back at orginal position
if tx > 400 then tx = 0
rem width
w = tx +99+120
rem height
h = ty +99+56
rem move the bitmap right and don't leave the left side of the bitmap in a static position
copy bitmap 1,0,0,99,99,0,tx + 120,ty+56,w,h
sync
loop
darkvee