Where should i store game logic BP?

In the player blueprint, I have some custom events with variables (to store number of targets) and customer event to call game over screen . This custom events are triggered by actors overlapped by the player. If all conditions in player blueprint are fulfilled victory screen is displayed. What are the best practices for such types of blueprints? Should I make a separate widget manager blueprint to store all logic for the game over screen? Or should I put it somewhere else?

1 Like

It’s hard to know where you should store your logic without knowing the full context. The player will own and interact with the widget. The logic of game specific things like a victory conditions, defeat conditions, and general gameplay flow would fit into the GameMode. The widget (such as the “Victory Screen”) could just make calls to the GameMode to do whatever it is you need to do next in the game after a player victory.