Hi Malte,
I follow the example of imageCollision but I not get collision
First I set the constrainRectagular in the messagebox for both images.
Work with buttons? and how to check with multiple images at same time?
What I doing wrong?
on mousedown
grab me
end mousedown
on constrainRectangularCallback
if imageCollide(the name of img "ghost_b",the name of img "ghost_c",0) then
put "Collision detected" into fld "imgCollide"
else
put "No collision" into fld "imgCollide"
end if
end constrainRectangularCallback
No collision
Moderators: heatherlaine, kevinmiller, robinmiller, malte
Re: No collision
Hi Josep,
imageCollide works with images, not buttons.
Are you sure the two images you reference exist? Do they really collide when you move them?
Also if you grab an object, constrainRectangularCallback is not sent. It is only sent if you are moving an object that has its constrainRectangular property set.
Hth,
Malte
imageCollide works with images, not buttons.
Are you sure the two images you reference exist? Do they really collide when you move them?
Also if you grab an object, constrainRectangularCallback is not sent. It is only sent if you are moving an object that has its constrainRectangular property set.
Hth,
Malte