Hi everyone!
I have a problem .. I do not know how best to explain ..
So: when two sprites, they collide not close and along by the invisible border.
How to make the invisible color (rgb 0,0,0) was not taken over part of the sprite?
In other words, how to make two sprites collide close?
ink rgb(255,255,255),1
circle 30,30,10
get image 1,0,0,60,60,1
rem Now we will make two sprites
sprite 1,100,100,1
sprite 2,300,200,1 : flip sprite 2 : scale sprite 2,200
set sprite 2,1,0
sync on
repeat
cls
oldx=x
oldy=y
if upkey()=1 then y=y-3
if downkey()=1 then y=y+3
if leftkey()=1 then x=x-3
if rightkey()=1 then x=x+3
sprite 1,x,y,1
if sprite hit(1,0)>0 then ink 0,rgb(255,255,255) else ink rgb(255,255,255),0
if sprite collision(1,0)>0
x=oldx
y=oldy
sprite 1,x,y,1
endif
sync
until mouseclick()=1
cls
delete sprite 1
delete sprite 2
delete image 1
end
EDIT: Sorry that my post is not placed in correct theme (DBPro), I do not know how to move it now.
Excuse me for my English comrades.
In my spare time I drink vodka, play the balalaika and hide from the polar bears.