How to make a Flashlight Turn On And off?

Ok i have a game with a flashlight and you find stuff but i want to be albe to press F and the flashlight turns off and then if you press F again th flashlight comes on! HOW DO YOU DO THIS?

here I just made this blend for you :smiley: just see how I made the logic bricks and you’re OK it’s really simple

flash light.blend (434 KB)

NOTE: if u wanted a python script for it then I’m sorry but I just don’t know python or any other scripting language :'C

hope this was helpful

Thank you so much!!!

you’re welcome :D, glad I helped

( pour Blender 2.61 :rolleyes: )

( for Blender 2.61 :rolleyes: )