0 Favourites

[solved] Hydra Castle Labyrinth / La-Mulana Jump

  • In games like Hydra Castle Labyrinth or La-Mulana, ceilings do not affect the player's jump arc whatsoever -- the player "pushes against" the ceiling for the duration of the jump instead of hitting his head and immediately falling down.

    Does anyone know how I can achieve this with the platform behavior?

    What would be really great is a modification to the platform behavior itself so this can be easily applied to enemies too, but I'm open to a solution with events as well.

    Examples:

  • I think the easiest way is to change the gravity if the player has a collision with the ceiling. I made a litte example to show what I mean:

  • Asmodean Hmm that's close but not quite it. The goal is to not have ceilings affect the underlying jump arc whatsoever. Lowering the gravity while overlapping the ceiling simply makes the player float there for an undetermined time.

  • Hey Tokinsom,

    I haven't played the games so im not sure if this is exactly what you want but this is how I would do it with platform behaviour:

  • GenkiGenga Thanks for the .capx but that has the same problem as Asmodean's - The player hovers for an undetermined or fixed amount of time instead of for the remainder of the jump.

    Also worth noting that if the player is jumping while moving, hits a ceiling, and then moves past the ceiling, the jump will continue upwards (provided he's not at the falling end of the complete jump arc).

    I think the only way to properly do this is to modify the platform behavior or make a whole new jump mechanic with events :T hmm..

  • Here you go:

    It was a little tricky figuring out some quirks, but fairly straightforward in its' implementation.

  • Prominent There we go! Simple but effective. I had considered writing my own jump that overrides the platform behavior's but feared it would mess with it too much. Didn't think about just using the existing y vector / gravity...derp.

    btw it looks like the y positioning and rounding isn't necessary - just modifying vy and the y vector seems to do the trick.

    Thanks all.

  • Construct 3

    Buy Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Buy Now Construct 3 users don't see these ads
  • btw it looks like the y positioning and rounding isn't necessary - just modifying vy and the y vector seems to do the trick.

    Ah cool- yeah, the other stuff was what I tried first, so I thought that was necessary, but looks like it's not!

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)