Quantcast
Channel: Latest Questions by CallToAdventure
Viewing all articles
Browse latest Browse all 62

Timer for repeated action

$
0
0
I have a really nice light bulb with a switch somewhere in the scene that turns the scene into a dark room (using a black texture with alpha). All works just fine. However, I want to implement the following behaviour - if the player turns on and off the light quickly for several times, the light bulb should explode. I use a simple toggle script to control what happens when the light is on or off. Any ideas?! Thanks!

Viewing all articles
Browse latest Browse all 62

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>