8 direction jump like Zelda?

Get help using Construct 2

Post » Thu May 16, 2013 12:07 pm

Hey guys,

I'm looking an idea how to implement 8 direction jump like The Legend of Zelda: A link to the Past, i was thinking if i could add jump animation or some dynamic jump from cliff to flat ground.

Is hard to do it?
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Thu May 16, 2013 12:15 pm

I would do it this way:
Put an animation of player jumping, so would move the sprite up a bit and add a round shadow behind the spirte in the place where he was really. Then I would make a Boolean variable in the player called "isJump" and put to when "isJump" is true, able to walk over some obstacles :P
B
123
S
19
G
16
Posts: 487
Reputation: 21,498

Post » Fri May 17, 2013 3:10 pm

@gillenew It seems logical, I will try it, i'm not sure it would be smooth.

Anyways, Thanks!
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Fri May 17, 2013 3:21 pm

@Joannesalfa - so that the motion appears smooth, you can add an animation or just move the sprite to the final position using - moveAtAngle 270 with dt*60 (or the value you want to move, best way is to test it)
B
123
S
19
G
16
Posts: 487
Reputation: 21,498

Post » Fri May 17, 2013 3:27 pm

@gillenew Nice, that's good formula, i definetly try it.
B
96
S
25
G
20
Posts: 3,052
Reputation: 22,638

Post » Fri May 17, 2013 6:59 pm

I would have the player "jump" into a dedicated layer above, that would make collisions and overlap very easy to manage...
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260


Return to How do I....?

Who is online

Users browsing this forum: 99Instances2Go and 5 guests