User Tag List

Results 1 to 3 of 3

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

  1. #1
    No Products Registered

    Join Date
    Jun 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

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

    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 ;(

    monster_unicorn_sprite_for_peachiipup_by_wingdongs-dbcdlo0.png
    Images attachées Images attachées

  2. #2
    Clicker Fusion 2.5 DeveloperiOS Export ModuleSWF Export Module
    Sumo's Avatar
    Join Date
    Jul 2008
    Posts
    642
    Mentioned
    1 Post(s)
    Tagged
    0 Thread(s)

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

    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

  3. #3
    No Products Registered

    Join Date
    Jun 2017
    Posts
    2
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)
    I was stuck on this for hours, I really appreciate the guidance! And thank you!! I'm an artist before a programmer as you can tell :p

Similar Threads

  1. Player shakes on collision with wall.
    By ethaniscurious in forum Fusion 2.5
    Replies: 7
    Last Post: 14th September 2016, 12:37 PM
  2. Replies: 2
    Last Post: 10th January 2016, 07:53 PM
  3. Character Sprite Collision Bug
    By Lsddreamemu in forum Multimedia Fusion 2 - Technical Support
    Replies: 0
    Last Post: 17th May 2015, 06:13 PM
  4. [BUG] no fine collision when a sprite rotate
    By arthurh in forum Android Export Module 2.5
    Replies: 2
    Last Post: 15th February 2014, 07:35 AM

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •