Sprite Switch between dialogues

Godot 4.6

How do I make my sprite switch in between dialogues like those visual novels? Like take the Good Coffee, Great Coffee game or like Danganronpa. I tried looking for a tutorial but I only found 1, but it wasn’t the one I was looking for! It works and all, but when I tried adding a third sprite, it won’t work as expected :frowning:

Dialog on it’s own is a highly complex and opinionated system, you would have to provide much more specific information about what you have built, and how you are trying to add to it.

There are many ways. I’m using this at the moment.

var atlas = PicturesAtlas.DemoScene.new()

signal act_done

func show_cinematic() -> void: 
	await play_act_one()
	await play_act_two()
	

func play_act_one() -> Signal:
	screen.set_picture(atlas.picture_1)
	await screen.set_text("dialogue")
	
	return act_done
	

func play_act_two() -> Signal: 
	screen.set_picture(atlas.picture_2)
	await screen.set_text("dialogue")
	
	return act_done
@onready var scene_picture_ctl: TextureRect = %ScenePictureCtl

func set_picture(new_picture: Texture2D) -> void:
	scene_picture_ctl.texture = new_picture