Dash Teleporting Me Up

So, I was attempting to clean my code so it would be easier to understand what was happening but after I did that, the dash ability start teleporting me up.
The code looks like this:


The behaviors in a group on the left side is the dash mechanic. You can find this code in the bundle “Better 2D Walker” in the Player. Make sure to try this in the testing room by the way. (To dash, you must be in the air and click shift.)
Screenshot 2024-02-28 1.39.34 PM


Link to the game:

image
This should be in “x”

Yeah, I can’t figure out how to dash anyway. I tried but it never worked.

That’s for jumping though.

On mobile rn, but you have a Position behavior with the Y input. I’d double check the value that it gets. To me it looks like the Always and Number would set it to 0, then the number would later be set to the player Y. On mobile though so I can’t check the game

1 Like

The Position is so supposed to keep the player at the same Y position while being boosted on the X axis. I did that because everytime I tried to make a dash in my past games it would result in the player being pushed to the side so the fix I had to that was to keep the player on the same Y position.

Check it to make sure it’s not putting them to a Y level of 0

1 Like

Yeah apparently it is inputting 0 but the number to set it to keep the player’s Y position is saying it’s setting but nothing is happening.

It’s probably being set to 0 first

1 Like

Is it because of the top-down behavior running thing? Because this didn’t happen until I began to attempt to organize my behaviors.

Yeah might be due to that,

2 Likes