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
111
S
30
G
28
Posts: 3,108
Reputation: 27,122

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
Open for Commission, contact email > [email protected]



my personal website with news in my game developer adventure! |

adult ( 18) pixel art games
B
126
S
20
G
19
Posts: 500
Reputation: 23,247

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
111
S
30
G
28
Posts: 3,108
Reputation: 27,122

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)
Open for Commission, contact email > [email protected]



my personal website with news in my game developer adventure! |

adult ( 18) pixel art games
B
126
S
20
G
19
Posts: 500
Reputation: 23,247

Post » Fri May 17, 2013 3:27 pm

@gillenew Nice, that's good formula, i definetly try it.
B
111
S
30
G
28
Posts: 3,108
Reputation: 27,122

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: Carlafnt, Flipy, MatheusCastellar, Taser and 7 guests