This site is currently in read-only mode during migration to a new platform.
You cannot post questions, answers or comments, as they would be lost during the migration otherwise.
0 votes

Hello! I was wandering if there is a way to manage the dialogue and action without using the process function. For example, I have different dialogue scenes in my main scene,two of them need to be shown after some animations

The order in my game should be like this: player's animation, first dialogue, particles start emitting, second dialogue, particles start moving.

Is there a command or something that can help me? I don't want to always check in process what needs to be shown and when.

in Engine by (92 points)

1 Answer

0 votes
Best answer

It looks like you could use signals. The main idea is that a signal is emitted every time something specific happens in the game. Every node has its own predefined signals (found under the Node tab next to the Inspector tab), but you can also define your own signals. Check the docs.

Also, it seems that you want a sequence of actions and you are trying to achieve it by checking whether certain steps have been completed in the _process(delta) function. If said actions are predefined, use the AnimationPlayer Node to animate the desired behaviour. It will save you from a lot of coding. Check the docs here.

by (1,892 points)
selected by
Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read Frequently asked questions and How to use this Q&A? before posting your first questions.
Social login is currently unavailable. If you've previously logged in with a Facebook or GitHub account, use the I forgot my password link in the login box to set a password for your account. If you still can't access your account, send an email to [email protected] with your username.