How Do I Start a Timer Every Time a Player Enters a Room?

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
I want to make a system in which every time the player enters the same room, a 30 second timer starts and when it reaches 0, something happens. Currently, I have an event that almost works how I want it to, when the player enters the room the first time everything works. The issue is that when the player enters the room, leaves, and re enters, the timer doesn't work anymore. I want it to activate every time the player enters, not just once. Any help would be appreciated. I'll include screenshots of how I have the event currently set up below.
 

Attachments

  • Untitled.png
    Untitled.png
    271.4 KB · Views: 2
  • Untitled2.png
    Untitled2.png
    278.4 KB · Views: 2

Trihan

Speedy Scripter
Veteran
Joined
Apr 12, 2012
Messages
3,755
Reaction score
2,848
First Language
English
Primarily Uses
RMMZ
You'll have to turn that event's self switch off in the event that transfers the player out.
 

Eliaquim

Hakuen Studio
Veteran
Joined
May 22, 2018
Messages
2,164
Reaction score
1,649
First Language
Portuguese - Br
Primarily Uses
RMMZ
Hi there!
If your "room" means a map, you can just create an autorun or parallel event to start the timer then ERASE this event.

Every time you enter on this map, this event will play, because erased events appear again when you enter the map. But if you turn switches, you will have to control(turn them on/off) when a player leaves/enter the map.

And you can check the timer with another event.
 

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hi there!
If your "room" means a map, you can just create an autorun or parallel event to start the timer then ERASE this event.

Every time you enter on this map, this event will play, because erased events appear again when you enter the map. But if you turn switches, you will have to control(turn them on/off) when a player leaves/enter the map.

And you can check the timer with another event.
Hi, I do mean a map. I tried doing what you said, but erasing the event isn't working. Maybe I'm going about erasing the event incorrectly. I'll include screenshots below, could you tell me what I'm doing wrong?
 

Attachments

  • Untitled.png
    Untitled.png
    269.6 KB · Views: 1
  • Untitled2.png
    Untitled2.png
    277.4 KB · Views: 1

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
You'll have to turn that event's self switch off in the event that transfers the player out.
How would I run a check that sees if the player has been transferred out of the map? Sorry, I'm kind of a noob
 

mkelly527

Veteran
Veteran
Joined
May 17, 2021
Messages
37
Reaction score
3
First Language
English
Primarily Uses
RMMV
Hi, I do mean a map. I tried doing what you said, but erasing the event isn't working. Maybe I'm going about erasing the event incorrectly. I'll include screenshots below, could you tell me what I'm doing wrong?
Hey man, I actually ended up figuring it out, thank you so much!
 

Latest Threads

Latest Profile Posts

Another comic with Backstage Malak...
If you want to ask him anything, you can ask on my DeviantArt page! I'm not sure if you're allowed to do it here.
Forum tip of the day ...
If you get a temporary suspension for being a jerk to people who are trying to help you, and arguing with mods and admins, don't go making new accounts. Chances are, if you p**s us off enough to suspend you for a week, we're not going to hesitate giving you a permanent ban when you give us a reason.
E_6fAErVkAQILXu.png
I'm so close to releasing my game on steam! :blush::blush::blush:
Us:
"This game is awesome! I wish there are more games like this in the future."
Also us:
"I hate how games stopped being original and start copying other successful games."
Should've done this a few days ago but...
PRI_200136808.jpg
Rest in Peace, Sir Clive Sinclair
1940 - 2021
Entrepreneur, Technologist, Father of the Modern British Computing Industry, and protagonist of Legend of ZUN.

Without you, England's games and tech industry wouldn't be where it is.

Forum statistics

Threads
115,287
Messages
1,088,653
Members
149,913
Latest member
badalias
Top