How to add Multiple Levels and Widget?
Ignore this problem for now.
Ok I know how to add levels and widgets. What I'm trying to do is, when I click on Play it should show a widgets showing "New Game" and "Quit".
Aim: When I click on "New Game" it should start my character running and load everything that I implemented in the level. And when character die it should show the Widget "Restart" or "Quit"?
What I did: Create a new Empty Level called "StartMenu" and widget with "New Game" and "Quit" options. When user or me Click on New Game it loads a new Level called "Runner". So good far now.
Problem: It is auto run endless runner game. When I open "StartMenu" Level. It display my character is falling and background. And then everything is dark because it is empty level. How to solve it?
I'm not good in explanation. But in short I want to create a Menu>Load New Level> Restart Level (On Death).
Is implementing multiple widgets in new empty level is good idea? Or is there better solution what I want to implement?
Edit: Ok. Problem was Game Mode. I was generating tiles/floor inside Game Mode Blueprint. I copied paste everything from game mode to level print. :)
Ok, a little tired so not great answer.
I can not find it right now, but remember that the tiles are deleted from behind the player so there are not a million of them. Put a BOOL up and when dies, stop that function happening. As I can not find the code I am sure a bool will work, but that is your issue.
I will see if I can find where it is done again.
answered May 18 '15 at 11:55 AM
I do it differently, not perfect, but works.
answered May 18 '15 at 02:01 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here