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

Get help using Construct 2

Post » Sat Jun 04, 2016 6:06 pm

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.
B
6
S
1
Posts: 13
Reputation: 376

Post » Sun Jun 05, 2016 7:02 am

2.5 D ?
Can`t u use [Platform >> Jump} ??
B
13
S
5
G
4
Posts: 119
Reputation: 3,353

Post » Sun Jun 05, 2016 3:01 pm

fathijack1999 wrote:2.5 D ?
Can`t u use [Platform >> Jump} ??



No, if I use platform, it can't be 2.5D
B
6
S
1
Posts: 13
Reputation: 376

Post » Sun Jun 05, 2016 3:21 pm

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.
B
7
S
1
Posts: 12
Reputation: 401

Post » Sun Aug 07, 2016 4:53 pm

derboo wrote: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?
B
6
S
1
Posts: 13
Reputation: 376


Return to How do I....?

Who is online

Users browsing this forum: Google [Bot] and 3 guests