0 votes

I'm trying to have it that when a player goes into a room, or is near a Sprite3D, that a timer would start and when the Timer has Timed out, the Sprite would move. How do I do this? I've tried different things, but it all comes back to the Sprite not moving when the Timer times out.

Godot version 3.0
in Engine by (18 points)

1 Answer

0 votes

I am not familiar with 3d, so my suggestion may not work. You could use the Area node to create a scanner. Use the "shapeenterd" or "bodyentered" signal to check if the player is in the area. Then, connect the signal with the Timer. When the signal is on, start the timer. Use the "time_out" signal of the timer to trigger the Sprite. I don't know the method you move your sprite, so here is a common way.

func _process(delta):
    if time_over:
        self.x += 10
by (345 points)

Hello dethland,

Thank you so much for the help. At first, the animation wasn't working, but now it is.

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.