Climb walls like Spider-Man?

Get help using Construct 2

Post » Thu Feb 23, 2017 10:49 pm

When the player is jumping to the wall, the player starts climbing like Spider-Man. But when the user presses a button, the player stops climbing. Is there any way of doing this?
B
30
S
13
G
3
Posts: 132
Reputation: 4,141

Post » Thu Feb 23, 2017 11:28 pm

Yes and I use it all the time.

You need an animation with the player facing the wall and climbing. Set it to looping.

Global variable Climb = 0

You need a blank sprite that the player will jump and collide with to trigger them to climb.

On Player collides with climbsprite: set animation player to climb, set climb=1

On climb=1: move player 1 pixel at 270 degrees

You need a way to turn off climb and another blank sprite works.

On Player collides with climbstop: set climb = 0
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Thu Feb 23, 2017 11:33 pm

Is there any way you can elaborate? I'm sorry I'm completely new and still learning
B
30
S
13
G
3
Posts: 132
Reputation: 4,141

Post » Fri Feb 24, 2017 12:25 am

Bobbyneal100 wrote:Is there any way you can elaborate? I'm sorry I'm completely new and still learning


Hold on a little while and I will do a quick example capx.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Fri Feb 24, 2017 1:10 am

Bobbyneal100 wrote:Is there any way you can elaborate? I'm sorry I'm completely new and still learning


Do you have a sprite that has a climbing animation to use?
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Fri Feb 24, 2017 4:10 am

I don't
B
30
S
13
G
3
Posts: 132
Reputation: 4,141

Post » Fri Feb 24, 2017 4:17 am

Bobbyneal100 wrote:I don't


Well that is your first step because I can't very well explain how to do a climbing action if you don't have a sprite with that animation.

Here is a free sprite with a climbing animation you can download to practice with:

http://opengameart.org/sites/default/files/NinjaAdventure.zip

Get your sprites all set up in separate animations and then tomorrow PM me and I will help you set it up to climb.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Sun Feb 26, 2017 1:01 am

its finished, how do i pm the file to you
B
30
S
13
G
3
Posts: 132
Reputation: 4,141

Post » Sun Feb 26, 2017 1:13 am

Bobbyneal100 wrote:its finished, how do i pm the file to you



Hold on before you do that.

Do you have the character set up as a platformer and do you have platforms set up for them to move around and jump on?

You need platforms and that can be any simple sprite filled with a color and set to solid.

When you have all your platforms created for your first level and your sprite animations changing in events when you push a key let me know and we will go to the next step.

You will be using the keyboard so add that to your layout and look at the platformer example in C2 to see how to set up your controls.
Banned User
B
27
S
7
G
58
Posts: 1,229
Reputation: 34,780

Post » Sun Feb 26, 2017 1:24 am

Yes i do
B
30
S
13
G
3
Posts: 132
Reputation: 4,141

Next

Return to How do I....?

Who is online

Users browsing this forum: shawnzien, tatogame and 8 guests