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,713
Reaction score
2,830
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,043
Reaction score
1,519
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

how does everybody even finish anything

i have like 5 projects in the backburner and it's just so sad that i probably won't get to finish all or maybe even any of them
Did you know that 90% of people in the world use the number in their sentence as they see fit?
It's been a long time since I was here but I have a lot of updates... btw I am teaching again about game programming and game design in some schools here in Brazil hahahaha It's good to see kids and teens learning this kind of thing!
welp, I literally can't continue working on ALEX now that my MZ trial is up (unless I somehow place in the jam which I don't remotely deserve to for my unfinished crap) so I am back on my bullshit

Forum statistics

Threads
113,891
Messages
1,078,233
Members
147,982
Latest member
GoyaGames
Top