Splitscreen for top-down shooters?

Get help using Construct 2

Post » Fri Jan 04, 2013 5:11 am

I've been kicking around an idea for a top-down shoot em up, but it's going to require a splitscreen effect similar to the one Yann made here on this thread. Basically, i need something that works similarly in that it splits the screen when the two player characters move apart, and rejoins it when they are nearby.

I thought I could just modify the code for the example CAPX Yann linked to, but apparently it's a little more complex than i thought. For a platformer, the code works great, but when you switch to a game that needs to move in the Y direction too, it breaks.

I have a CAPX here that's hopelessly broken. It is, of course, based on Yann's excellent platformer splitscreen example:


If i'm close, i think i've figured out that i need 2 canvas screens (one for each player)? I might not be close though.

Another way i was thinking of that might work is just figuring out how to do a Y-axis (up and down) split screen, and then combining that with an X-axis (side to side) one somehow. Would that actually work smoothly though? For example, the game that I'm working on would need smooth 360 movement. Would i be able to get away with doing a "if player2 is moving up or down, use THIS form of splitscreen" and a "if player2 is moving side to side, use THAT form of splitscreen"?
Posts: 35
Reputation: 1,875

Post » Sun Nov 10, 2013 10:52 pm

i searching for that too!
hope someone knows how to solve this...
its the best splitscreen method in my opinion!Solano2013-11-10 22:53:36
Posts: 9
Reputation: 2,252

Post » Sun Nov 10, 2013 11:15 pm

Use the canvas plugin.
Someone posted an example file here
basically each tick clear the canvas,move the canvas to the part that is not on the screen, paste all layers on it, move the canvas back to one half of the screen so the player can see it.
Visual Novel 'Engine' in 100 Events
if you ever have to choose between buying Construct 2 on scirra.com or on Steam, read this: Review
Posts: 787
Reputation: 3,786

Return to How do I....?

Who is online

Users browsing this forum: 20170217, frilous, jakeedge02 and 6 guests