0 Favourites

Anybody got diagonal jump thru platforms working?

  • I can't seem to get diagonal platforms working reliably. Most of the time the character hits them and stays on, sometimes he goes right through. I have messed around with a non-animated dummy character and it's collision polygon. It is better but still not reliable :(

    Anyone know how to fix this one?

  • Really, no one has managed to fix this one? Seems pretty important and I've tested it on another computer and still no joy. Bad collision detection pretty much renders the whole game useless :(

  • Ive jumped at an angled platform maybe 100-200 times straight and it seems when im paying attention, i have no problems but its pretty much if the corner of the player box is off by 1 pixel it will miss the jump even if it looks like it should make it. I think this is a case where it's technically correct, but it 'seems' broken since if you're just playing normally, jumps that 'should' work, don't...

    not sure what could be done to fix tho.. I would say maybe use special sprites for the diagonals where the collision is 'sunken' a bit... the player will aim for the 'visual border' but they have a bit of wiggle room since you've brought back the actual collision by 5 pixels or something..... maybe...?

  • Construct 3

    Buy Construct 3

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

    Buy Now Construct 3 users don't see these ads
  • Cheers for the reply 80bit. It is worth a try, I'll have a go with that method and report back!

  • I don't think the engine supports sloped jumpthrus. It's very difficult for the engine to tell if it's a slope or just something it can walk through (e.g. a big background jumpthru which shouldn't affect collision).

  • Cheers Ashley,

    So why does it work 9 times out of 10? It is literally so close and would be disappointing if I had to take the slopes out of the game.

    Have you ever tried it out?

  • I think it has somethin to do with the y of the slope and the player y. Thats what Ive noticed most when messin with it. Jump thru is only solid when the player is above it so if the slopes y is above the players the whole thing isnt solid

  • To do it, even if it's not perfect (but working), i created a variable for the ground.

    For example, with the value of "1" when the ground is with a value of 45 degres.

    Then, i had an action, testing when the main sprite (the collision box) is in collision with the ground, and the value of the variable : if the value is "1", the sprite is set to a 45 angle, otherwise to 0.

    It enables jump in diagonal, even if the jump is very little, but it's better than nothing, and not give the impression to the payer that the character is stuck, even if it's not very useful, as a platform game feature.

    As i'm just starting my game, i will keep in mind it's a pb in my constructiuon of levels.

    Sorry for my english, and i hope it can maybe help.

    If someone has an idea to make "real" jumps in diagonal, i wiil be happy :)

    (to resolve the pb of the hight of jump, i add in the action the thing to set the strengh of jump : for example set to 1000 when the value is "1", and to 800 otherwise. It seems to work)

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