x

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"

Which to use: GameMode or GameModeBase?

Hey guys I'm currently working on a side scrolling co-op game as was wondering which game mode to use for my project.

The description for the GameMode class says it's useful for match-based gameplay which isn't going to be a feature of my game, however I still have a kind of player lobby players can use to find each other in before the game begins like in those kind of games. So if I go for a GameModeBase does it still have the functionality to handle that sort of thing? Or should I stick with a standard GameMode instead?

Product Version: UE 4.16
Tags:
more ▼

asked Jul 08 '17 at 04:13 PM in Using UE4

avatar image

FS_Robin_Powell
1 1 1 1

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

1 answer: sort voted first

GameMode has a lot of functionality ready for you. It can give you a head start when dealing with multiplayer games where players will be connecting together to play in the same match (Like an FPS with rounds). In your case, GameMode is still probably right for you. If you derive from GameModeBase then you need to write the functionality for handling match states yourself. You'll have to do some panning through the GameMode class to learn how to use it, but it's pretty straight forward.

For example: your coop game would need to wait for both players to join, then start the match after both are ready. GameMode has these states for you and it works along side GameState as well. Additionally, it has functionality for hanging on to players if they happen to disconnect or something. It will store the player state and you can use that to give it back when they reconnect.

more ▼

answered Feb 15 '18 at 07:32 AM

avatar image

Demeese
165 11 18 24

avatar image Nazgool Mar 26 '18 at 11:02 PM

Thank you !!!

(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