Is it possible I wrote a small test program using a ball and a map sprite when the ball is in the map image transparent zones is still registers a hit is there any way around this?
sync rate 0
sync on
hide mouse
load image ".\Images\Balls\MoltenRock.tga",1,1
load image ".\Images\Machines\Test1\board.tga",2,2
sprite 2,240,-476,2
sprite 1,940,240,1
dim x() as integer
dim y() as integer
do
sprite 2,240,-476,2
sprite 1,940+x(),240+y(),1
if upkey() then y()=y()-1
if downkey() then y()=y()+1
if leftkey() then x()=x()-1
if rightkey() then x()=x()+1
sync
text 10,10, str$(SPRITE HIT(1, 0))
text 30,10, str$(SPRITE collision(1, 0))
loop
This is my first time pasting code so dont mind if it shows uop twice I posted it in this window aswell as the code window to view the results.
Thanks for any help gang!
Princess Leia
SYSTEM: AMD 2.7Ghz, 1GIG DDR ram, 120GB HD, ATI Radeon 9700.