(Sorry I'm very new to godot)
I recently started doing a simple first person game, and I wanted to add a flashlight that plays an animation when you press F.
The light is working perfectly but the problem is the animation. I want to play it forwards when the flashlight is on, and play it backwards when the flashlight is off (The animation is showing the flashlight going back).
So, to do that I used an if statement that plays the animation forwards or backwards, but it shows an error. In the if statement I say that if the flashlight is off (visible = false), play the animation backwards, but it says "unexpected assign just before "=" (see image). What am I doing wrong? How can I play the animation backwards knowing that visible = false?
