Navigation

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

    hanging on edges

    Coding
    2
    3
    220
    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.
    • waldron
      waldron F last edited by

      what is the preferred method for a character to hang or grab an edge of a cliff/platform
      hit box or if possible 2 collide boxes

      1 Reply Last reply Reply Quote 0
      • Jaywalker
        Jaywalker Donator last edited by

        have a state where the grabbing occurs, maybe like when a collision is detected on the hitbox of the cliff with the character, you are pressing into the direction of the cliff, and your y coord is above a certain threshhold compared to the cliff.
        Set a state variable grabbing = true and if that is true do not apply velocities to the position. When jumping or crawling up set grabbing = false and apply velocities for the jump or the up-crawl

        waldron 1 Reply Last reply Reply Quote 2
        • waldron
          waldron F @Jaywalker last edited by

          @Jaywalker cheers hopefully find some more time to test this out

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