Changing the UI based on player choices?
Posted: Fri Apr 02, 2021 10:03 am
Hi, i got a question regarding the UI.
I know u can change it completely and what not, but i wanna know if you can change it depending on what the player does.
For example, in my game, there are different locations that have their own theme. In the first chapter, there is only one location you can start in, which is colorful, and the UI reflects that, but in the second chapter there s 4 in total. Each are unique, and the bright colorful UI wouldn't fit them.
The player is sent to the locations depending on who is still present. So for example if there are A,B,C and D characters, and character D leaves (which the player has control over), you get sent to location X specifically, where the entirety chapter 2 will take place.
Under these conditions, can you change it? like have some sort of code that basically does "if player triggers location X, change UI to location x UI" and overriding any existing UI.
I haven't actually made the first UI yet, but all i plan on changing is the colors. So basically just a new coat of paint depending on which location you're in.
Hope i explained myself properly. Feel free to ask any additional questions if i didn't. take a shot every time i say UI
I know u can change it completely and what not, but i wanna know if you can change it depending on what the player does.
For example, in my game, there are different locations that have their own theme. In the first chapter, there is only one location you can start in, which is colorful, and the UI reflects that, but in the second chapter there s 4 in total. Each are unique, and the bright colorful UI wouldn't fit them.
The player is sent to the locations depending on who is still present. So for example if there are A,B,C and D characters, and character D leaves (which the player has control over), you get sent to location X specifically, where the entirety chapter 2 will take place.
Under these conditions, can you change it? like have some sort of code that basically does "if player triggers location X, change UI to location x UI" and overriding any existing UI.
I haven't actually made the first UI yet, but all i plan on changing is the colors. So basically just a new coat of paint depending on which location you're in.
Hope i explained myself properly. Feel free to ask any additional questions if i didn't. take a shot every time i say UI