Help with basic cutscene plz

Godot Version

4.4.1

Question

So I’m working on a game, and I’m going to have cutscenes.
It might take a while, witch is why I’m seeking as many shortcuts as possible.
This includes basic cutscenes, that only have a still image per scene along with text at the bottom.

But, I like to know how to store the data in a neat and organized way.
Basically, I want to know how to store these variables in one group including:

Scene image,
Character icon,
Text,
A random sound effect,
and which music is playing.

I could just copy past code, but this is the opposite of what I want, as not only it would make game dev more clunky, but it would also be a waste of memory.

THX for you’re support!

You could create a custom resource script and then save resources with the unique data

extends Resource
class_name CutsceneData
# class_name ensures "CutsceneData" will be listed when creating resources
# This can also be used as a type when exporting

# export all of your cut scene variables to
# change them as properties in the editor 
@export var scene_image: Texture2D
@export var character_icon: Texture2D
@export_multiline var text: String
@export var music: AudioStream
1 Like

Cool! THX

Cool, and one more thing:
What if I want multiple cutscenes in my game?

Then you can make multiple CutsceneData resources.

You haven’t posted any code so it’s hard to give concrete advice

1 Like