Submit Your Article


 
RPG Maker

Welcome Guest ( Log In | Register )


  Games Resources RPG Maker VX RPG Maker XP Scripts Tutorials Downloads

> Help with Timed Matches Event
sanders
post May 28 2012, 01:43 PM
Post #1



Group Icon

Group: Member
Posts: 3
Type: Developer
RM Skill: Intermediate




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:


When lit:


It's not turning off...:


Common Event:


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.

Please help!
Go to the top of the page
 
+Quote Post
   



Closed TopicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 

Lo-Fi Version Time is now: 24th May 2013 - 04:29 PM
RPG RPG Revolution is an Privacy Policy and Legal
eXTReMe Tracker