Scrolling Game Development Kit Forum

SGDK Version 1 => Help/FAQ => Topic started by: chrismorgan on 2007-05-28, 07:35:32 PM

Title: Making a sprites 'solid' area smaller than the visible image
Post by: chrismorgan on 2007-05-28, 07:35:32 PM
Hi,

I have looked for a solution to my problem but have not found one.

The problem is this.  I have a sprite (representing the player) wearing a hat.  I want all the sprite to be visible, but I don't want the hat to be involved in collisions.  For example if an enemy hits the hat the player will not be injured, or if the the player walks through a tunnel, but the hat is above the top of the tunnel, it will not stop the player.

What is the solution please?

Cheers,

Chris.
Title: Re: Making a sprites 'solid' area smaller than the visible image
Post by: Jam0864 on 2007-05-29, 01:34:28 AM
I'm pretty sure that it isn't possible.   :(
Title: Re: Making a sprites 'solid' area smaller than the visible image
Post by: eric22222 on 2007-05-29, 09:59:54 AM
Actually, I can think of one way to do it. Make your player sprite without the hat. Create a second sprite for the hat. Have the hat set to ride on top of the player.