realbasic-nug
[Top] [All Lists]

Re: Sprite Collisions

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Sprite Collisions
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Tue, 30 Jul 2002 08:05:38 -0700
At 10:59 AM -0400 7/30/02, SpaceJunkie0001 at aol dot com wrote:

Is there a way I make it so RealBasic determines which sprite collided with
which sprite?

Yes, you simply assign different positive .Group values for each sprite, and when they touch, the SpriteSurface's Collision event will fire and receive a reference to each sprite involved in the collision.

Best,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


<Prev in Thread] Current Thread [Next in Thread>