|
|
|
|
Attention |
Topic was automatically imported from the old Question2Answer platform. |
|
Asked By |
thoma |
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
|
|
|
|
Reply From: |
Kaligule |
You could do it like this:
var reloading = false
func shoot():
if not reloading:
$AnimatedSprite.play("shoot")
func reload():
reloading = true
$AnimatedSprite.play("reload")
reloading = false
Now you can shoot and reload as much as you want, but the reloading won’t be disturbed by shooting.
Your welcome. Did it solve your problem?
Kaligule | 2019-07-06 05:59
That totally solve my promblem