off the top of my head, it would be in your Collision event handler,
something like:
Sub Collision (s1 as sprite, s2 as sprite)
//s1 or s2 has to be the cat, we don't know which one
if s1=mouse or s2=mouse then
//good things happen
else //by the process of elimination, it's the dog
//bad things happen
end if
HTH
On Tuesday, July 30, 2002, at 09:59 AM, SpaceJunkie0001 at aol dot com wrote:
Is there a way I make it so RealBasic determines which sprite collided
with
which sprite? I'm trying to a game with a cat, mice and a dog in his
doghouse, which if the cat collides with a mouse, he gains points and
if he
collides with the dog, he loses points.
|