I’m working on a rock, paper, scissor minigame, and I was wondering where do you write the rules of the match, like did the player win, how many rounds are left, etc.
I’ve been writing the rules in the player character class and the enemy class, but I don’t think that’s a good practice, so I was wondering how you manage this kind of stuff.
That would be the job of the GameMode (rules) and GameState (state of the game, i.e score, rounds left, etc.) classes.
Game Mode and Game State in Unreal Engine | Unreal Engine 5.1 Documentation
If you want to have the game to be networked, also take a look at this.
Gameplay Framework + Network | An Unreal Engine Blog by Cedric Neukirchen (cedric-neukirchen.net)
1 Like
Thank you so much the resource is super helpful