How do I Tag team, Platformer

Get help using Construct 2

Post » Fri Apr 25, 2014 9:36 am

I've been looking for a way to do this all night.

My goal is to have two characters in a platformer.
One character follows the other until the player presses the switch key.
When the switch key is pressed the character that was following would now be the lead and the previous lead would be following.

I've got it to the point where one character follows the other character but switching the lead still eludes me. (The following I have set up is pretty terrible too. :/)

To get a better idea of what I'm thinking of, this would be similar to Donkey Kong Country. Diddy kong trades places with DK and vice versa.
Last edited by SlothBroth on Fri Apr 25, 2014 2:01 pm, edited 1 time in total.
B
4
Posts: 3
Reputation: 266

Post » Fri Apr 25, 2014 9:55 am

I haven't actually tried this but in its simplest form i would say give the two characters the platformer behavior and simply swap one on and one off.

Of course there would be more work to be done to make it work more smoothly.

Or are you talking more about getting one to move in front of the other?
B
15
S
2
Posts: 69
Reputation: 1,270

Post » Fri Apr 25, 2014 10:04 am

It doesn't really matter if one moves in front of the other as long as the controls switch and the following behavior switches to the second character.
That's a good idea.
I'm going to see if there's a way to set a key to toggle the platform behavior from one to the other while also toggling a variation of the pathfinding behavior at the same time.

I'm determined to figure this out!
B
4
Posts: 3
Reputation: 266

Post » Fri Apr 25, 2014 1:05 pm

Ok, so using @emoaeden 's tut on switching between characters I found a way to implement the tag team function pretty seamlessly in my game. It's actually really great.

The scroll to function isn't working but I'll tinker with that later.

I'm going to try to use the companion tut by @Yann to get the characters to follow whomever is leading.

here's the event sheet so far. It's not perfect but, hey, I've only had C2 for like 8 hours.

tagteam.png
You do not have the required permissions to view the files attached to this post.
B
4
Posts: 3
Reputation: 266


Return to How do I....?

Who is online

Users browsing this forum: Kenthria and 13 guests