SO this is what i want to make(so i am trying to make my game multiplayer and i have added the hud interface of the multiplayer join thing so when i press m the hud goes on) But whats happening is when i start the game my hud blinks on the screen and my cursor apears. LEMME know what i am doing wrong
There is several problems at once…
Firstly, “mp” must be InputAction, not InputAxis. Axis means analog input, it must not be used for events.
Secondly, after you created “Mp” widget you must save it’s reference to some variable, or you will lose reference once branch A ends. In branch B of FlipFlop node you need to “Remove from Parent” using this variable.
Thirdly, I noticed you using GetPlayerController with index 0 - that’s not right. In multiplayer games local controller not always be at index 0. You need to get local player controller in ways it’s provided depends in which class it needed. Usually it’s functions like Get Local Player, Get Owning Player/Get Owner (for HUD, widgets, pawns etc.).
I put code which creating menu widget into Player Controller, because it’s the only one who needs menu.
Notice there as I saved widget to variable “MainMenu” after it been created.
Can you do me a favor? make the blueprint seen in the pic and fix all the problems and then just upload the pic of the blueprint so that i can understand