4.5.9 Metroidvania ladders

bmonks

New member
Just a quick question. Do ladders work in the Metroidvania Mod? for example to move up and down screens, platforms etc.
 

DarthAT

Member
Is there an update to this?

I see the ladder tile on the overworld screen, but when I go into the subscripts and check tile 10 it is blank?

I have added the climp up/down ladder inputs. When my player currently tries to climb the ladder, he just sits there and bounces on the first ladder tile.

Is there a missing laddertTile.asm?
 

lubone

Member
In "Object details" set "Animations Types - climb" and select "climb" for right and left (not for up and down). It should work.
 

Jonny

Well-known member
I've definately tried it out at one time but I can't remember how to set it up. I've scanned though the tut videos but can't find the info. If I am remembering correctly, there isn't an actual ladder tile (could be wrong about this) I think its all done within handlephysics referencing 0A and there isn't an actual tile script for it as such. Someone would need to confim this.

As for doing up and down screens, there's been a couple of posts about that recently and how to make it work.
 

CluckFox

Active member
I've definately tried it out at one time but I can't remember how to set it up. I've scanned though the tut videos but can't find the info. If I am remembering correctly, there isn't an actual ladder tile (could be wrong about this) I think its all done within handlephysics referencing 0A and there isn't an actual tile script for it as such. Someone would need to confim this.

As for doing up and down screens, there's been a couple of posts about that recently and how to make it work.
There is no ladder script. The up/down input scripts check for tile type #$0a directly for movement, and the physics script checks for #$0a and a few others by number to see if you are standing on solid ground or empty space.
 

DocNES

Member
I've been stuck on this for a few days now. I can't figure out the MetroidVania Ladders to save my life.

In tile10 it is blank and has no code.

When trying to go up, the player just bounces. When trying to go down (tapping), it will go slowly go down through a solid tile 3 or 4 lines. Any help would gladly be appreciated.
 

Mulligan

Member
I've been stuck on this for a few days now. I can't figure out the MetroidVania Ladders to save my life.

In tile10 it is blank and has no code.

When trying to go up, the player just bounces. When trying to go down (tapping), it will go slowly go down through a solid tile 3 or 4 lines. Any help would gladly be appreciated.
I’m right there with you in this one. My player completely ignores the ladder tile. It won’t climb up. It will fall through them like they aren’t there. But somehow it acknowledges them when I jump. So I can jump climb them. Since that’s two different pieces of code I’m assuming the problem is in the physics code. Or something to do with the physics code.
 

DocNES

Member
Just ran into this too. Did you make sure to click "Ignore Gravity" on the players action step 3.

That was super helpful my dude. Thank you, fir help me learn! Why was it step 3 in particular, I had that set for my animation for step 3.?

-I still have the issue of Player being able to go through the sold floor tile below the ladder.

-Second, standing on top of the ladder will not be able to go down it. But I can live with this one for now :)
-Holding Jump+Up or Holding Jump+Down starts the run animation. lol

@Mulligan What also helped me was changing the input from "Press U" to "Hold U".

 

Attachments

  • ezgif.com-gif-maker (1).gif
    ezgif.com-gif-maker (1).gif
    61.7 KB · Views: 12
I've only been working in the Metrovania module a few days so I could be missing some details.

From what I have uncovered:
• Climbing is action step 3 per the climbLadder input scripts towards the bottom
• I did not have the issue at the bottom of the ladder that you are experiencing. There is a static value around line 61 in the climb up script and 40 in climb down. You probably need to adjust these values so the routine properly looks at the tile above/below the player per your game. this may fix your top of ladder issue too.
 

Attachments

  • CaptureclimbLadder.JPG
    CaptureclimbLadder.JPG
    99.6 KB · Views: 19

DocNES

Member
@SirBunnyMcNuggets this 100% did the trick for almost all my ladder issues! Player no longer goes through the solid tile below, and uses the ladder all the way to the top. Stands on it, and can move back down. For down I had to +3 value to my Player Bounding Box size, and I believe +2 for going up.
FYI, the animations for ClimbingLadder only care about R/L NOT U/D. Was beating me head for a while on that one. I think I'm going to write a simple ElI5 Tutorial on this for other new people like me.

Only thing left for my game would be having a separate direction faced shooting animation while on the ladder.
 
Glad I could help. I haven't gone back to the tutorials in a bit but I'm sure some of the ladder stuff was covered somewhere.
Also you may not have noticed but you don't have an idle state while on the ladder. When you stop the player animation continues.
My plan for this evening is to put that together then look into things like shooting from the ladder.

**OK, again I'm sure this someone has figured this out already. I make no claim that this to be the best way to handle it but here's what I did to address the ladder animation.
The simplest method seems to be using inputs. I've attached the inputs that I made.

For these to work you have to make an idle animation that has the same number of frames as your ladder climbing animation.
So if your ladder climbing animation is four frames then you will need a ladder idle animation that is also four frames.
When making the ladder idle animation make sure to copy your idle frame and paste it to the other three.

Then in your animation info under ladder (where you have left and right set as the up and down climbing animations) you need to set the "up" animation as your new ladder idle animation.

Once you have added the attached files to your input scripts all that is left to do is map them.
idleLadder_INPUT needs to be mapped to Release Up and Release Down
ladderCheck_INPUT needs to be mapped to Press Up and Press Down
 

Attachments

  • MV_ladderCheck_INPUT.txt
    366 bytes · Views: 12
  • MV_idleLadder_INPUT.txt
    369 bytes · Views: 10
Last edited:

Mulligan

Member
This thread has helped a lot. But I figured out my issue had to do with ignore gravity. I'm using the adventure/platformer module. It doesn't come with ignore gravity as an action flag. Can someone point me in the direction of where I might find that?
 
oh geez. The easiest thing might be to post on that thread and see if Mouse can help.
If you are ASM savvy you could dig around in the physics and add the flag back in.
 

Mulligan

Member
oh geez. The easiest thing might be to post on that thread and see if Mouse can help.
If you are ASM savvy you could dig around in the physics and add the flag back in.
I’m not good at coding at all. But if the flag is in physics I can probably track it down and do a copy paste. I just had no idea where to look.
 
Top Bottom