How do I make the character jump in a Castle Crashers game

  • So, I am making a game in the Castle Crashers style, and I need to know how to make the character jump, using the platform behaviour will make no good, because the movement is a 2.5D like.

  • 2.5 D ?

    Can`t u use [Platform >> Jump} ??

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • 2.5 D ?

    Can`t u use [Platform >> Jump} ?? > No, if I use platform, it can't be 2.5D

  • I'm certain there's smarter ways to do this, but here's an approach I'd try:

    • When jump button is pressed, start a counter from 0 to max height. With each increase, increase height of the character.
    • Once max height is reached, turn the whole thing around with variable toggle so the number is decreased with each step. - When the counter is back at zero, the jump is over.
    • You can also use the current value of the height counter to make sure characters only can hit each other when they're of similar jumping height.
  • I'm certain there's smarter ways to do this, but here's an approach I'd try:

    - When jump button is pressed, start a counter from 0 to max height. With each increase, increase height of the character.

    - Once max height is reached, turn the whole thing around with variable toggle so the number is decreased with each step. - When the counter is back at zero, the jump is over.

    - You can also use the current value of the height counter to make sure characters only can hit each other when they're of similar jumping height.

    Would you make this in a project, upload it and send me the link please?

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