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?
asked Jul 08 '17 at 04:13 PM in Using UE4
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.
Follow this question
Once you sign in you will be able to subscribe for any updates here