Switch between scenes

Discuss authoring naninovel scenario scripts.
Forum rules
Please be aware, that we're not providing official support via forum — it's entirely community-driven; see the support page for more information.
Post Reply
Gonzo
Posts: 9
Joined: Wed May 20, 2020 2:04 pm

Switch between scenes

Post by Gonzo »

Hi everybody! :)
This is my first post, im new to naninovel/unity and my english is horrible, so please be patient.

First of all, i want to say thank you to ElRingus, you are amazing, i immediately fell in love with Naninovel, keep the good work!
Well im doing a game combining naninovel and AC, and im trying to create a citymap, like the one in here:

https://naninovel.com/guide/choices.html#choice-button

The thing is i don´t know how to change to another unity scene once you click on the button, so i can enter an AC/Unity scene.
Does anybody know how to do that?

Thank you!

User avatar
Elringus
Admin
Posts: 132
Joined: Mon May 11, 2020 6:03 pm

Re: Switch between scenes

Post by Elringus »

Hey, Glad you found Naninovel useful!

While you can use choice area handler to implement the map, I'd suggest looking into a custom UI instead. This will allow for a more flexible and maintainable solution. You can use Play Script component to react for button (map spot) clicks with script commands; to switch between Unity scenes, use @loadScene command.

Gonzo
Posts: 9
Joined: Wed May 20, 2020 2:04 pm

Re: Switch between scenes

Post by Gonzo »

Thank you very much for replying so quickly! I made it work thanks to your instructions : D

Post Reply