Ok, so I’m trying to make a separate level as an equipment menu for an Action RPG and was wondering how to open a level using a variable without getting a travel URL error. I used a GameInstance and It works for the first level but not for the following levels.
it also restarts my character to the starting position
When you open a level it will always put the player at the player start. If you want to go to a different level and back in the same place, you need to save their location and then as part of the level start, set their location with the saved location.
I am not going to tell you not to use a level as a menu, but that’s really heavy handed. You can simply pause the game and use an overlay UI- what is it you’re trying to go for exactly? Using the character as the interaction piece for the menu?
Would casting work? I’ve been trying to do so but It hasn’t been work; it always failed no matter what.
I know, I’m just being extra with it
I’m trying to replicate what they did in Final Fantasy VII Rebirth, where its a real time render of the characters.
For what reason would you need the gameInstance to update continually? I mean you WOULD use tick, however nothing here seems to need to continually update the GameInstance, it seems like it should only need to update when something changes- and that should just take an event? I only ask for clarification.
You set the variables before you begin? You did read the image I posted, correct? So lets say for example your asking if you can change the variable on the fly. Then you set up a trigger somewhere or a key bind and then have the tag change…Edit: You also don’t need this data to change continuously it updates when the level is opened.
Well when I try mapping it to a Input event It no longer opens the menu anymore and when I don’t It only opens the First map. so I was wondering if there was an event I could Put in the instance that could have it load the level when it opens?
Problem is when I do the menu stops work (It won’t open) and in the Instance I can’t Map it to A Menu [ key Input] event since it wont let me mske one in the instance. Though theres a strong possibility I miss read it. where did u make the example in?
For clarification, could you be more exact with your explanation? Try to refrain from saying “it” and say things like “the level” or “the menu” and so on! It’s a bit confusing with all of the generalized references.
You won’t be able to put this in the game instance, you want to use something like the GameMode instead. The example looks to be in the Level Blueprint because it has a level overlap event as the event.
So Sorry, by It i meant, the example Dragon made. I mapped the blueprints to an Input Event in the Player start blueprint I made. And when ever I swap from the Menu level to the level I want, it sends me back to the first level I was on (the main menu) in stead of the one I was on previously. but also whenever I use a variable that is outside of the Game instance it doesn’t work and I get a Travel Error for the casting. so I was wondering if there was an event I could Put in the instance that could have it load the level when it opens?
Set this up in the Gamemode, boot it and then override the ChoosePlayerStart, then run this.
This will fix everything.
Here are your examples as to what you want to paste into the player start tags.
When you have “none” in the player start it will prioritize you to start there when testing.
Just play with it till your happy.