Switch between scenes

Discuss authoring naninovel scenario scripts.
Post Reply
Gonzo
Posts: 9
Joined: 20 May 2020 14:04

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!

Elringus
admin
Posts: 521
Joined: 11 May 2020 18:03

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: 20 May 2020 14:04

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