Help dialogue scene

Hi everyone, i’m new in this world but i have nice concept of OOP and i know its programming language. Actually i’m programming in C# and i’m having some trouble with a script.
My purpouse is creating a visual novel, i find it kinda simple but my problem is that i can’t understand some things like the dialogue scene, if i have to change ambientation, i have to change entirely the scene or should i change just the background image of the canvas? And in both of cases, how should i change background or scene? I tried with if condition in the dialogue parser so when the stream read the number of the background image it change it, but it doesn’t work.
I appreciate all of you for the help :slight_smile:

Depending on the number of backgrounds and character graphics you have, you might only need one scene for the actual visual novel part (not the title screen or credits or otherwise). It should be easy enough to change the background and lighting in one scene, though loading a ton of backgrounds into memory at once might fill up the RAM on smaller devices. If this becomes a problem, try breaking up your chapters or acts into individual scenes. I wouldn’t anticipate this happening unless there is a decent amount of animated graphics, but you might still want to minimize the memory load to make users happy.

You can use a UI screen object for fading out to make the transitions smoother. Something like: Fade out → Change background/lighting → Fade in-- You can even keep sounds or BGM playing during the transition if both sides of the transition are part of the same conversation or mood. You could also use a camera overlay script for this.