Navigation

    Fuze Arena Logo
    • Register
    • Login
    • Search
    • Categories
    • Recent
    • Popular
    • Users
    • Groups
    • Help
    • Discord

    Can a sprite have two collision shapes?

    Beginners
    2
    3
    397
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • poof92
      poof92 last edited by

      I'm just wondering if it's possible for a sprite to have two collision shapes?

      1 Reply Last reply Reply Quote 0
      • vinicity
        vinicity F last edited by

        The short answer is no, but there are ways around it.

        Either overlay a second, invisible sprite with a different shape, and check both sprites for collision.

        Or, and I haven't tested this but it should probably work, check collision, switch to the next collision shape (on the same sprite) and check for collisions again. Then change it back to the original collision shape for the next loop...

        1 Reply Last reply Reply Quote 0
        • poof92
          poof92 last edited by

          Alright thanks for the tip I'm sure it'll prove useful

          1 Reply Last reply Reply Quote 0
          • First post
            Last post