Replication With Local Split Screen Coop

I’ve run into a “How should I or can I do this in UE4”.

Here is my scenario: I have an endless runner type game in where i want the ability to have split screen local coop. Traditionally in split screen local coop you have two viewports and what I would like is to have each viewport be its own gameplay space.

What i mean by that is each viewport would show only one player and collectibles for that player. So even though the world would have its players and collectibles, I need to replicate the collectibles so that only a specific player can collect/see them and i need to hide the other player is the current players viewport. So in essence it is replication/networked scenario but between two viewports.

What i currently have working is split screen coop with the two players sharing the same world. Each player can see the other player and the collectibles are shared between the two. You can see that I’m trying to make the gameplay scenario more competitive.

Any suggestions or does anyone have experience in the split screen space?

Thanks,

You are going to have a much easier time creating two different tracks within the same world than any other means if you’d like to achieve this effect.

So the problem there is that there will be 40+ unique tracks and the duplication of work would get quite hairy.

Some ideas I have been thinking about is:

*Have the collection objects duplicate for the two viewports
*Only rendering specific collection objects per the player’s viewport (Only render player 2’s collection object if we are rendering viewport two)
*Only the player can collect the objects in their viewports (player 2 can only collect player 2 marked collection objects)

I am trying to do this as well.

I was reading this: Game Flow Overview | Unreal Engine Documentation and it says at the bottom “In addition, the Actors in the level are duplicated so that in-game changes do not affect the level in the editor, and every object, including the GameInstance object, has a separate copy for each PIE instance.”

I’m wondering if anyone knows where the above is done in the UE4 source code. I would like to try doing this in split screen.

What about the Actors’ render : Only Owner See checkbox?