realbasic-games
[Top] [All Lists]

Re: Sprites Colliding

To: REALbasic Games <realbasic-games at lists dot realsoftware dot com>
Subject: Re: Sprites Colliding
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Fri, 7 Oct 2005 11:44:57 -0600
Delivered-to: realbasic-games at lists dot realsoftware dot com
References: <4346AE69 dot 4080505 at earthlink dot net>
At 12:20 PM -0500 10/7/05, Eric Richards wrote:

Right now, I have one strip of sprites that is part of
the ground, which the character can collide with.
Also I have some other sprites like, platforms and "steps"
that the character can collide with as well.

Sounds similar to the Platform Demo, in the sample projects that come with RB. Have you looked at that?

Now I don't know what to do. If the character is on the ground he
will always be colliding with a sprite unless he jumps.

You need to set him up on top of the ground if you're going to handle your ground interaction that way. (Actually, Platform Demo does not, IIRC; instead it keeps a map of where the ground is, draws the ground in PaintTile, and calculates where the player sprite should stop falling directly.)

Best,
- Joe

--
Joe Strout                          REAL Software, Inc.

Vote for REALbasic (twice!) in the LinuxWorld Reader's Choice Awards:
http://linux.sys-con.com/general/readerschoice.htm
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>

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