An extension for multiplayer games without using split-screen

Using this extension I made, you can center the camera between multiple sprites and not have them leave the screen.

The extension support up to 6 sprites (idk maybe if you want to add NPCs)

This is my first real extension!

I appreciate feedback and stuff

6 Likes

This is a useful extension, I haven’t found any bugs with it! :smiley:
I’d say you could add different constraint ‘modes’ that happen when the sprites hit opposite sides. For example:

  • The default current mode, where the camera stops to force them to walk together
  • A ‘slow’ mode, where one sprite pushing on the right side of the screen could slowly drag the camera and the other sprite to the right
  • A ‘fast’ mode, where whichever sprite is hitting the wall takes control of the camera and pulls the other sprite along at full speed

These are just camera centering methods I’ve seen in other engines that could be useful : )

3 Likes

For some reason, slow mode activates if you make the sprites go up and down.

2 Likes

Nice! My idea is to make it so player 1 has “priority” and can make the camera push the others to stay in place.

3 Likes

Yeah bugs? I found one.

Considering sprites here are intended to stay in screen you can push one of the blobs into a wall and make them clip inside it:

(I did get it to work but failed to replicate it for photos)

fixed Hopoefully (and I added another block)

2 Likes

Look at this masterpiece I made:

To win you have to get to the bottom of the dungeon where there is a chest.
And btw if you press a while overlapping one of the npcs then you can drag them a lil bit

3 Likes


Infuriatingly fun. I was making progress until those two on the right started dragging us all back :rofl:

1 Like

@codinggrizzlybear , I think that if Player 1 moves out of the camera and Player 2 is under a hitbox, when the camera moves Player 2 is pulled into the hitbox.

Im surprised someone actually found it fun, but I found that if you get stuck you could just
kidnap- I mean, gently nudge them so that the comer pushes them in the direction you want.

1 Like

The name is accurate


This extension is really cool, definitely better than pxt-multicamera.

2 Likes

what’s pxt-multicamera? I couldnt find it in the forum searches

1 Like

??? sorry whats that mean

First person to beat it? If I hadn’t play tested it, it probably would’ve been a lot easier since you used to be able to just carry all of them to the end

3 Likes

The secret is to press A before all the NPC’s can scatter.

3 Likes

Here:
Camera pulled the duck out of the tilemap.

This is cool. Is there any way to combine this with the split screen extension? So the camera tries to center across every player but as soon as one player can’t move forward then it splits. But then it reunites when that player comes back. That way we can have the ultimate multiplayer camera feature unless if MakeCode Arcade adds separate screens for every player.

1 Like

Wait…

I think you might be a genius

2 Likes

Yeah, that is possible, I’ll think about it, but I don’t know if im advanced enough to do it

If anyone else wants to do it, they can copy me if they like

Im surprised someone actually found it fun, but I found that if you get stuck you could just
kidnap- I mean, gently nudge them so that the comer pushes them in the direction you want.