Author: James Clarke
Date: 6/16/2023
This week I took a bit of a break from the customers and decided to work on a flashlight for the player to use. A certain issue that I've had is adding synchronized flickering for the light. The current implementation that I've come up with allows for the light to flicker once for a longer period of time, then twice in a row and wait a bit. I like the result that I've come up with this far, however, the outcome I want is to have a slightly longer flicker at the beginning, then have a double flicker and have the sequence loop back around. As of right now, the light does not loop back around.
Timer code that I came up with.
I believe the solution for this issue, might just have to do with the timing of my flickers or I may even need to add a third timer system for the longer flicker. I would also like to get it set up with a for loop if possible, but my recent tries have failed in giving me the results I wanted. Hopefully I will be able to get the results I want pretty easily and still have it be flexible.
Flashlight Display
Did you like this post? Tell us
Leave a comment
Log in with your itch.io account to leave a comment.