I did it so that I could go down the stairs and to start moving along it, I need to press the left mouse button, but I would like to hold the left button instead of just clicking, but I do not know how to do this, please help me.
How are you moving? As in, what method are you using?
Well, when I get to the stairs, I press the left mouse button and then hold down W and go up or S and go down.
What method are you using, could you show the script? There’s like 20 ways to move the player.
I press the left mouse button
- what does pressing it do?
- why does clicking moves the player?
- does it play a timeline?
Provide more info please.
So we’re climbing a ladder, hence the Movement Modes switches, right? Got it, I think. I believe the Left Mouse Button script is not needed at all here - you have all the booleans covered. Consider these 2 approaches:
- ideally, you’d add a new
Context Mapping
with controls allowing you to traverse only when the LMB is held. Duplicate the IA_Move and add aChorded Action
trigger for the LMB. Switch to this new context when entering ladder collision box. (Essentially, you should be switching to a new input pattern when climbing) - alternatively, add this:
here, instead of the LMB script you already have:
Hopefully that’s enough!