0 votes

example of whats happening

var puck_timer = $Timer

func example1()
pucktimer.setwaittime(2)
puck
timer.start()
Vector2(0, 1)

func onTimertimeout()
Vector2(0, 1)
puck_timer.stop
example1()

timer doesnt work when i call the func that starts the timer

in Engine by (12 points)

I looked over the code and didn't find any issues. you may need to show the original code, there might be a mistake in it, if I'm not missing anything.

1 Answer

0 votes

if (puck hits timer):
$puck_timer.play

i would do it like this

by (223 points)
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.