Not sure if this has been done before, but I really need help with this.
I'm trying to make matches that burn for a certain amount of time (say, 15 seconds). When the match is lit, the lighting changes from almost pitch black to a brighter setting giving the effect of a lit match. Then 15 seconds appears at the corner of the screen and begins to countdown. When the 15 seconds hit 0, the match goes out and the room reverts to pitch black again.
I tried doing it with common events and timer variables, but the problem is once I get the match lit, I can't get it to go out when the timer hits 0. It stays lit and the timer stays at 0:00 at the corner.Screenshots
How dark the original room is:
It's not turning off...:
The common event is activated by the item "Match" when it is used. The common event uses the variable "lighting" to determine the level of darkness/brightness:
1 = Pitch black
2 = Very dark
3 = Dim light
These variables react with a lighting event on the map with 3 pages, each page being set on parallel process and activated depending on what "lighting" is set on.
Matches change 2 (which is the default number for lighting) to 3 to make the map visible for 15 seconds. After 15 seconds, 3 is supposed to go back to 2, however it is not doing this.