Author Topic: Making a sprites 'solid' area smaller than the visible image  (Read 3834 times)

chrismorgan

  • Visitor
  • *
  • Posts: 1
    • View Profile
    • Email
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.

Jam0864

  • Contributor
  • Fanatic
  • **
  • Posts: 744
    • MSN Messenger - marmalade0864@hotmail.com
    • View Profile
    • Jam0864's Content Dump
    • Email
Re: Making a sprites 'solid' area smaller than the visible image
« Reply #1 on: 2007-05-29, 01:34:28 AM »
I'm pretty sure that it isn't possible.   :(

eric22222

  • Fanatic
  • ***
  • Posts: 177
    • View Profile
    • Eric Online
    • Email
Re: Making a sprites 'solid' area smaller than the visible image
« Reply #2 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.