i am making a 2d game where i am loading the location of the character but it is constantly looping without any loop i had put
this is my game load(Custom event) code
You have an OpenLevel node in your GameInstance’s MenuLoadGame event. If that event is called by LoadGame in your BP_MyGame_State, then that’s your infinite loop right there.
Level loads.
Begin Play event triggers in BP_MyGame_State
Call LoadGame
Call OpenLevel
Goto step 1 since you’re now in a new level.
IOW, every time you call OpenLevel, BeginPlay is called. Every time BeginPlay is called, you open a level. Hence infinite loop.