8-direction with Jump

Get help using Construct 2

Post » Sun Mar 18, 2012 10:18 pm

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

Post » Sun Mar 18, 2012 10:37 pm

Side-scrolling beat-em up next! :)

You could also add some code based on y-axis for the origins of obstacles, so like streets of rage, turtles or similar, you could hide behind stuff, collect power ups. The only downside would be trying to sort z-axis if you want things like doorways etc.

You'd have to check whatever the character was overlapping was lower or higher on the y-axis, and if lower (on the screen) set the character to the bottom.

Image
B
27
S
9
G
5
Posts: 487
Reputation: 11,939

Post » Mon Mar 19, 2012 3:59 pm

Yes indeed, I like using the "move to top of layer" instead of "move to bottom layer" for the player, obstacles and enemies, based on the "Y" position! I know that is the same effect with an inverted solution, but works better for me :D! Well that's other topic! We should make a new one for that! It's quite interesting and usefull for this kind of game!SamCartagenaPR2012-03-19 16:42:01
B
61
S
5
G
5
Posts: 32
Reputation: 6,743

Post » Mon Mar 19, 2012 10:26 pm

Wow! Very thanks "SamCartagenaPR", your words was very very enlightening, keep helpin' us, bro!KrazyKaos2012-03-19 22:26:15
B
20
S
2
G
1
Posts: 32
Reputation: 1,997

Previous

Return to How do I....?

Who is online

Users browsing this forum: heliogame, WhosWho, Yahoo [Bot] and 18 guests