How to attach the top and bottom of a player sprite? (collision)

Welcome to our brand new Clickteam Community Hub! We hope you will enjoy using the new features, which we will be further expanding in the coming months.

A few features including Passport are unavailable initially whilst we monitor stability of the new platform, we hope to bring these online very soon. Small issues will crop up following the import from our old system, including some message formatting, translation accuracy and other things.

Thank you for your patience whilst we've worked on this and we look forward to more exciting community developments soon!

Clickteam.
  • So I'm working on a cute rpg or whatever, and my character sprites are typically 32x64 (width by height). Obviously a character in your typical RPG game needs collision, however I want the top half of the character to be able to pass above objects with ease whilst the bottom acts as the collision detector-- stopping/ moving both sprites at the same time whenever something is like a rock for instance is hit.

    Unfortunately, I can't find a way to permanently stick the top half to the bottom. Whenever the bottom collides with an object in game, the bottom itself stops as intended, but the top just keeps goin' with what ever directional key I'm pressing. How the heckle do I fix this? Apologies if this is a stupid question or a stupid fix but you know how it is ;(

    Please login to see this attachment.

  • Keep the sprite as one image. Use an invisible detector object as the true moveable character. The box would just be a filled in active object that has the same width as your character and half the height. Then always position your sprite to the detector object.

    So it should look like the sprite is on top of the detector. The detector will appear at the bottom of her feet. Since the detector deals with the collisions, you don't have to worry about the sprite.

    You've got some great looking sprites too. You're pretty good at pixel art.

    Sent from my iPhone using Tapatalk

    Custom A* Pathfinding in MMF2: Please login to see this link.
    Random Tile World Generation: Please login to see this link.

Participate now!

Don’t have an account yet? Register yourself now and be a part of our community!