[Solved] Best way to display a new chapter screen?

All about user interface, be it customizing built-in UIs or adding new ones.
Post Reply
justloveme94
Posts: 25
Joined: 18 Feb 2021 14:26

[Solved] Best way to display a new chapter screen?

Post by justloveme94 »

Hello all, I am currently trying to implement a chapter screen. I want to display the chapter screen, Chapter 1, and the player clicks on the screen to continue. Or something similar. I thought I could set it up as a background, but it shows for a second and then instantly goes to the next background.

Last edited by justloveme94 on 27 Dec 2021 16:50, edited 1 time in total.
idaot
support
Posts: 263
Joined: 01 Aug 2020 08:25

Re: Best way to display a new chapter screen?

Post by idaot »

Consider using a Custom UI instead (https://naninovel.com/guide/user-interface.html) and add a Play Script to a button in which you can execute a @goto to a specified label. After showing the UI via @ShowUI, be sure to add a @stop, otherwise the naniscript will continue playing.

justloveme94
Posts: 25
Joined: 18 Feb 2021 14:26

Re: Best way to display a new chapter screen?

Post by justloveme94 »

I'm not sure what I am doing wrong but I created the custom UI but it's completely overriding the start of my game. It is overriding the title screen and the game cannot be started despite @showUI Chapter1Screen, not being shown until later.

idaot
support
Posts: 263
Joined: 01 Aug 2020 08:25

Re: Best way to display a new chapter screen?

Post by idaot »

When you create a custom UI, there will be a setting called Visible on Awake that is enabled by default. Disable that and make sure Hide on Load is enabled. You can find information on the Custom UI settings here: https://naninovel.com/guide/user-interf ... tomization

justloveme94
Posts: 25
Joined: 18 Feb 2021 14:26

Re: Best way to display a new chapter screen?

Post by justloveme94 »

Ah, that fixed it! Thank you!

Post Reply