In my game, I’m trying to make a flashlight key. Basically what I want to happen is when you press F, it toggles the Flashlight on and off. and the off and on are separate animations and I want it to switch between the two. If someone could help it, it I very appreciate it.
First, please don’t use preformatted text options for posts. It makes it nearly illegible.
Second, while no one will be able to build your flashlight itself for you, to make it work with the same button to turn on/off, you’re going to need to learn about toggle switches/states. How to toggle states using Variables [GDevelop wiki]
Sorry, I didn’t notice it was preformatted.
1 Like