Wallclimbing and hanging on platforms

Get help using Construct 2

Post » Mon Sep 24, 2012 2:39 am

Hi everybody, I recently started on Construct 2 and I need help on this please.

In my game, I want the player have some ninja skills, so I want my character to do some wallclimbing, hang and climb some platforms a-la-Ninja-Gaiden-III like the image:




Please help with this :3HNK2012-09-24 02:40:18
B
5
Posts: 10
Reputation: 595

Post » Mon Sep 24, 2012 5:08 am

physics behavior

Should be pretty easy with a physics behavior, via gravity when touching the ceiling sprites.

Something like this, minus the camera and sprite rotation: airscape

Someone else may have a good alternative, though.
B
28
S
6
G
5
Posts: 248
Reputation: 5,463

Post » Mon Sep 24, 2012 5:21 am

You'd definitely be better off using the Platform behavior, considering you appear to be making a platformer.

I'd make an example if I was at home, but it isn't too complicated. Give your character a variable called State or something, set to "normal" by default, to keep track of how he should behave. Set it to "wall" when he hits a wall or the ceiling -- when it's "wall", set the player's gravity to 0 so he won't fall. Then when you press a button or something to let go, set it back to "normal", where gravity is restored.
B
20
S
9
G
6
Posts: 607
Reputation: 6,112


Return to How do I....?

Who is online

Users browsing this forum: tatogame and 27 guests