Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

How do you make your game playable for 2 people after it's finished?

I haven't finished the game yet but i want to know after i finish it how to make it so me and a friend can play the game against each other on computers. I want to know how this is done.

Product Version: Not Selected
more ▼

asked Apr 13 '15 at 12:36 AM in Using UE4

avatar image

1 1 4 4

avatar image birdfreeyahoo Apr 13 '15 at 01:01 AM

Do you already have built-in multiplayer support? Then you need someone with opened ports to host a dedicated or listen server, and the others can connect to him.

If you not already have the multiplayer support, this is going to be a bigger thing, you need to make all parts of your project multiplayer compatible.

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

It would be better to design the game around multiplayer support. You can't just write a few lines of code and have a multiplayer game.

Unreal has been built with multiplayer game development in mind, and uses a concept called replication. This works by replicating relevant data between the server and clients. Here is an extract from the docs to give an example of replication:

... You see two opponents running towards you, shooting at you, and you hear their shots. Since all of the game state is being maintained on the server rather than on your machine, why can you see and hear those things happening?

You can see the opponents because the server has recognized that the opponents are relevant to you (i.e. they are visible) and the server is currently replicating those Actors to you. Thus, you (the client) have a local copy of those two player Actors who are running after you. You can see that the opponents are running toward you because the server is replicating their Location and Velocity properties to you. Between Location updates from the server, your client simulates the movement of the opponents locally. You can hear their gunshots because the server is replicating the ClientHearSound function to you. The ClientHearSound function is called for a PlayerPawn whenever the server determines that the PlayerPawn hears a sound. ...

I recommend you visit the docs, google a bit and get a solid understanding of networking and replication before doing anything more to your game.

You can visit the networking section of the docs here. https://docs.unrealengine.com/latest/INT/Gameplay/Networking/Overview/index.html

Edit: I also recommend reading the tutorial here https://wiki.unrealengine.com/Replication

more ▼

answered Apr 13 '15 at 03:30 AM

avatar image

77 5 6 8

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question