How do I Split-Screen Multiplayer

Get help using Construct 2

Post » Wed Apr 16, 2014 4:51 pm

Well honestly i just don't have any idea on how to approach this.

How would you do a Split-Screen Multiplayer game?
B
16
S
4
G
5
Posts: 24
Reputation: 3,288

Post » Wed Apr 16, 2014 5:00 pm

There a topic has example of split screen using R0j0hound's plugin called Canvas.

solved-split-screen_t67856?&hilit=split+screen

About the multiplayer, It's up to your design.
B
99
S
35
G
29
Posts: 3,139
Reputation: 28,421

Post » Wed Apr 16, 2014 5:01 pm

I haven't tried yet myself, but isn't the new pong example basically each player on their own half?
That's how I would approach it. Now scrolling each separately might get tricky, there are some threads though..

ninja'd
B
233
S
62
G
33
Posts: 902
Reputation: 40,398

Post » Thu Apr 17, 2014 12:09 am

You need to double everything. And use layout the size of the resolution. Create two virtual screens on one layout, each height or with of half of the screen ( depending if you want to split it vertically of horizontally ). Create two players, and create two... lets call them shadows. You'll need two arrays, one per player. Also you will need to create some sort of virtual position checker, which will be checking relative position of each player in regards to their own virtual rooms. So lets say each room would have one sprite at the end of it that you can check relative position of the players. Ok, now, you will have to take players one relative position, and use it to set position of his shadow in another player part of the screen every tick.

Ok, so we got all that, but now here's the biggest trick = you players stay in one place - they do not move! However everything else including shadows has got movement behavior with custom controls. Those controls are set in reverse, so when player hits right arrow, the whole level moves to the left.

Hope that will help!
My professional Royalty Free Music at Scirra Assets Store
--------------------------------
Specs: i5 2500, 16gb of ram, gtx 770, win 7, Focusrite Scarlett 8i6, Mackie mr8mk2, Alesis 320, browsing the net on chrome.
B
89
S
30
G
22
Posts: 1,985
Reputation: 20,099


Return to How do I....?

Who is online

Users browsing this forum: lahbach, Waltuo, Yahoo [Bot] and 20 guests