0 votes

Hi I make a reload animation and now I want to make something will tell to the player if reload animation start playing DO NOT PLAY SHOOT ANIMATION! Thank for helping me

in Engine by (77 points)
edited by

1 Answer

0 votes

You could do it like this:

var reloading = false

func shoot():
    if not reloading:

func reload():
    reloading = true
    reloading = false

Now you can shoot and reload as much as you want, but the reloading won't be disturbed by shooting.

by (49 points)

Thank you very munch

Your welcome. Did it solve your problem?

That totally solve my promblem

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 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 webmaster@godotengine.org with your username.