Spiderman Movement

Get help using Construct 2

Post » Sat Sep 29, 2012 11:47 am

Hi there,

I'am searching for a solution for a Spiderman-Movement as you can see here in this Video (0:48 - 0:51)

SpiderMan

Hope anybody can Help me and can post a very simple *.capx for me!

Thanks!

KMag

B
13
S
4
G
3
Posts: 120
Reputation: 3,456

Post » Sat Sep 29, 2012 6:28 pm

Hi again,

no answer...hmmm...is this (i think easy thing for the prof. Users here) not possible within Construct 2? I can't believe....

KMag

B
13
S
4
G
3
Posts: 120
Reputation: 3,456

Post » Sat Sep 29, 2012 7:17 pm

This is fully within the realm of possibility. But you might want to wait longer than 6 hours for someone to reply with an answer.

There are a number of ways you can do this. If you're using a platform behavior character then you could have an event check to see if the player is next to a wall and presses a certain button, then the player can enter the "climb" state at which point the platform behavior is deactivated and a custom control scheme is put in place where you shift the player's Y coordinate depending upon whether the up or down controls are pressed. Things like that.

I didn't come up with a capx because I don't have the time right now, but the above is pretty much the gist of one way it could work.


EDIT: Just caught the part of your post specifying the time in the video you were looking to replicate. I thought you meant the wall climbing, but seems you meant the swinging. Good thing R0J0's on the case! TL222012-09-29 19:50:46
B
58
S
20
G
7
Posts: 305
Reputation: 8,804

Post » Sat Sep 29, 2012 7:32 pm

Also in response to your other topic: http://www.scirra.com/forum/movement-with-chain_topic57362.html

Well, first you would need a way to replicate the swinging rope. Physics with a hinge comes to mind. You could also use the math for pendulum motion. The swing behavior may also be a way to do it:
http://www.scirra.com/forum/behavior-swing_topic46029.html

Once you have a way to swing on the rope you can use it in your game by toggling the normal behavior off and your swinging behavior on whenever on the rope, and back to normal when not on the rope.
B
79
S
24
G
55
Posts: 4,755
Reputation: 41,273

Post » Sat Sep 29, 2012 8:50 pm

Hi there,

thank you for the Answers. I don't need a complicated example, an easy
will do it for me.

Here is a little Test-Example what i will do.

Example

Pressing x is spawning a line between the Player and the Platform.
When the Line collides with the Plattform it should be "pinned" to it and to the Player and the Player should move with the Line like you see
in the Spiderman example.

KMag





KMag2012-09-29 20:52:11
B
13
S
4
G
3
Posts: 120
Reputation: 3,456

Post » Sat Sep 29, 2012 9:12 pm

...and why don't you continue working on your "example"? I think, its a good start and you'll find just about everything you need within the "how to" section of this board.Weishaupt2012-09-29 21:22:58
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sat Sep 29, 2012 9:22 pm

@Weishaupt

Thanks, but i have tested something out and i can't find the right solution. Hopefully anybody can help me out because i have tested
so much, but nothing will work...

KMag

B
13
S
4
G
3
Posts: 120
Reputation: 3,456

Post » Sat Sep 29, 2012 9:25 pm

Ask specific questions, that can be answered. Asking things like, how to build a game like Donkey Kong will not get you anywhere.

In your code, the pining can not work as expected, because the lasso will continue to change its size. You have to disable the resizing as soon as its pinned to the platformWeishaupt2012-09-29 21:46:34
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Sun Sep 30, 2012 3:21 pm

@Weishaupt

Sure, but i don't need a complete Work - that is not that what i wan't.

My Question is only the "Movement". I'm sure in Construct 2 are many Way's to do this - maybe somebody have experiented and have already
a capx....

KMag

B
13
S
4
G
3
Posts: 120
Reputation: 3,456

Post » Sun Sep 30, 2012 11:04 pm

Here's the basic formula: Pendula
As I recall you'll need to use cos rather than sin for C2's system.
Image Image
B
161
S
48
G
91
Posts: 7,359
Reputation: 67,273

Next

Return to How do I....?

Who is online

Users browsing this forum: No registered users and 19 guests