RPG Crisis Community Forums: Anyone know of a reliable way to make ladders? - RPG Crisis Community Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Anyone know of a reliable way to make ladders?

#1 User is offline   Lijik 

  • Newbie
  • Pip
    • Group: Members
    • Posts: 6
    • Joined: 20-September 10
    • Time Online: 8m 59s

    LEVEL: 2
    HP: 0/120
    Hit Points
    MP: 0/30
    Magic Points
    EXP: 10%
    Experience
    RANK: NOVICE

    Posted 16 May 2010 - 08:11 AM

    Hey guys I'm making a platforming game and I'd like for some of the levels to involve ladders. I was able to code some but they are very fiddly and don't really work well.
    Here's my current method involves having a ladder object on the layer directly behind the player object that checks if the player is 0 tiles away, if it is then it flips a switch that allows the player to go into a climbing action if up or down are pushed. There are objects surrounding the ladder that do a similar check but make sure that the player cannot climb unless they are the right distance away from the ladder (as well as force them out of the climbing action when they reach the top).
    The main problem with this method is that at the top of the ladder, the unclimb checks do not properly allow the player to not climber the ladder, and instead create a janky looking climb where the player constantly flips between the climbing and idle actions. Holding left or right while moving on the ladder allows the player to go through tiles and objects as long as they are holding the down key.

    Sorry if the explanation is a little sloppy. Does anyone know, or can think of a better a method (or one thats significantly less problematic), or can maybe help me in making mine work? I can try to explain things better or provide the gpd file if necessary.
    0

    • IG Maker

    Share this topic:


    Page 1 of 1
    • You cannot start a new topic
    • You cannot reply to this topic

    1 User(s) are reading this topic
    0 members, 1 guests, 0 anonymous users