8-direction with Jump

Get help using Construct 2

Post » Fri Mar 16, 2012 4:43 pm

I was wondering how to do a 8-direction plataform game , like Ninja Turtles or Cadillacs and Dinosaurs?

Maybe a better question would be how to implement a jump to the 8-direction behaviour?
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Fri Mar 16, 2012 5:31 pm

I'm making a game like that, and I created an animation of jumping to simulate the effect of jumping!
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Fri Mar 16, 2012 5:35 pm

[QUOTE=SamCartagenaPR] I'm making a game like that, and I created an animation of jumping to simulate the effect of jumping![/QUOTE]

I thought about make a jump animation... but is it the only way?

Is there a preview of your game that I could see your results?
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Fri Mar 16, 2012 5:40 pm

ok I'll upload a preview on dropbox!

Edit Post:
I make a new one, it's just an example to show you the idea!

New link:
Preview Example

Move - Arrow Keys
Jump - Space buttonSamCartagenaPR2012-03-16 23:13:19
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Fri Mar 16, 2012 8:29 pm

Thanks for your example. I was able to preview if your method looks natural. It's a nice approach. :D
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Sat Mar 17, 2012 5:58 am

can you upload the Capx into emaple games i'd very much like to see how you do that
B
27
S
11
G
1
Posts: 246
Reputation: 5,048

Post » Sat Mar 17, 2012 11:20 am

Send us the capx. file, please! One question: How the game will recognize that the player can fall into holes and etc? Thanks!KrazyKaos2012-03-17 11:59:37
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

Post » Sat Mar 17, 2012 5:32 pm

Hi guys, It's not really a trick about programing, it's just pure animation effects. The collision points are on the shadow. You can make the shadow and the player in different sprites objects and then make the shadow follow the player by the everytick set position to player image point etc... or integrate it in the animation like I did in my example. Well make the player falling to a hole with this method, I think you need to make a "falling animation", if the jump animation finish or you are in the default animation, or in the "walking/running animation" etc...and your shadow it's overlaping the "hole" start the falling animation and disable the 8-direction until the animation finish, well that's just an idea. The thing is that it's not really a code of programing the jump to move up and down. The animation make the ilusion of jumping. See the image bellow.



SamCartagenaPR2012-03-17 22:07:20
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Sun Mar 18, 2012 3:57 am

Inspiring work @SamCartagenaPR. I thought that your solution presented here deserves a tutorial. I "wrote" it. But the credit is all yours.
B
228
S
6
G
8
Posts: 86
Reputation: 12,295

Post » Sun Mar 18, 2012 10:18 pm

@Jailson, Very nice, Thanks! :D
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Next

Return to How do I....?

Who is online

Users browsing this forum: Lancifer, linkman2004 and 17 guests