MALFUNCTION FLASHLIGHT
- Anderson Jerome
- Jun 22
- 1 min read
INTENTION
Inspired by Dredge, I want to set up malfunction flashlight.
Randomly Malfunction.
Location Based Malfunction.
RANDOMLY MALFUNCTION
First, I create an event that handles the malfunction. It has a chance of 1/1000 to trigger the malfunction.
Then, I call this event whenever player is moving.
At times, it may feel a bit too frequent. To reduce its frequency, we can do the followings :
Further reduce the chances of trigger. ( i.e. 1/10 000 )
Slow down the frequency of calling the event. This can be done through timer event with longer intervals.
But in this prototype, I call the event from player's movement because I want to test the function more frequently.
LOCATION BASED MALFUNCTION
I set up a trigger box that will do the followings :
Trigger the malfunction whenever player steps into the trigger box.
Prevent players from turning on the flashlight while they are in the trigger box.
Allow players to turn on the flashlight after they left the trigger box.
STANDSTILL
The malfunction will not happen if player is not moving ( displacement ) outside of the trigger zone.
ADDED FEEDBACK
The malfunction need to feel intentional, I don't want players to think it is a bug. So instead of directly disable or turning of the flashlight, the malfunction feature will do the following :
If it malfunction while the flashlight is on, it will flicker with buzzing sound effect before it turn off.
If player try to turn it back on in the trigger zone, they can still hear the button clicking sound but it won't turn on.
Comments