Envision, Create, Share

Welcome to HBGames, a leading amateur game development forum and Discord server. All are welcome, and amongst our ranks you will find experts in their field from all aspects of video game design and development.

how to activate a door by standing still for say.. 1min..?

Hi, please could someone explain how I do this below on rmxp pls?

Basically, I got a door with a npc stood near it saying that "if you meditate long
enough clarity of mind will show you the way",.. now, what I want to do is when
your stood still infront of the door for 1 minute the door will unlock and open up
allowing you to enter, if you move away from the door then the 1 minute countdown
will stop. (the countdown will not be visible)

could sum1 pls tell me how to do this, or even better do a demo for me, i follow demos
easier than trying to follow instructions, but either will be cool.

thanks.

p.s. Im sure something similar was done on a Snes game - earthbound, where you was asked
for a password underneath a waterfall, all you do was stand still for 3 minutes and it let
you in, unless you moved away, it then reset.
 
Make a player touch event, when player touches,a timer set to 1 min starts. But to make it stop, set player touch events one row out (around the timer triggering event(s)). The new events that is outside around the first one stops the timer.

Now when you walk upon the door this will happen:

Event 1 starts the timer

Event 2 wich is next to the inner 1st one, stops the
timer.

Then make a parallell process event (can be the door) with a conditional branch saying what happens when timer is 0.

That should do the trick!
 
I'm pretty sure the Earthbound designers wouldn't have made such a big game design error like waiting for 3 minutes triggering something. If they actually did, then it worked because the rest of the game was awesome enough for sitting it out, or it was just a slow-enough game or age for that to not annoy people.
Nowadays, when people don't even have time to spell 'someone' or 'please' out, I would suggest to drastically reduce the time needed, to something like 6 to 10 seconds. It might seem short, but you play games for a reason: You want to interact or be entertained. None of those happens while you force the player to touch theirselves where it's feeling good while waiting for a door to open that you're not even sure is opening. The 1% that wouldn't interpret your message as "This door will open sometime later in the game!" surely wouldn't sit on a single tile for a whole minute, unaware if it's actually doing something.
 

mawk

Sponsor

Earthbound did in fact have a door that opened when you waited in front of it for a minute or so. At a certain point immediately prior you're told that this is the "password" to that door. It isn't really one of the aspects of that game I'd mimic, but it's harmless enough in the game itself.

Now, the part of the game where Dr. Andonuts calls you up and berates the player's poor spelling for no reason? That's a classic.
 
lol.. that was just for an example when i said 3 mins.. lol thats game suicide doin summit stupid for that long.. it would probably be about 30 seconds in my game, definatly no longer... but didnt want entering the door made that easy.. as it's a dungeon where u will get a summon to use.

thanks
 
Okay, so i followed the instructions and it works exactly how I want it too but
there's one thing it's doing that I don't want..

Its showing the timer clock on top right of screen..

is there a way to have the timer run but not show the timer, or hide it so player
cant see it?
 

Eventing_Guy

Awesome Bro

This is what I would do...

-----------------------------------------------------------------------
First create 2 variables... X & Y (You can call them what ever you want)

Make it so:

Variable X = Player's Map X
Variable Y = Player's Map Y

Put that into a event that runs Parallel Process.

(you can out that off to the side)
-----------------------------------------------------------------------

Make another Event that is parallel Process

First insert a conditional branch

@>> If Variable X = (the # of where you are standing on X axis)

Make ANOTHER conditional branch and put it Inside the first one

@>> If Variable Y = (the # of where you are standing on Y axis)

then INSIDE THAT... put a wait command... wait for 1200 - 2400 frames

(Depending if there is any LAG frames per second is around 20 - 40...)
(Be best to play around with it)

After that you are gonna want to place the same 2 conditional branches Again.

@>> If Variable X = (the # of where you are standing on X axis)

@>> If Variable Y = (the # of where you are standing on Y axis)

and finally you can put the switch or variable (or what ever) that opens the door.



What all this does is:

First checks to see if you are on the correct spot...
second if you are on the location when the Wait command Ends
It THEN checks if you are still there... and if you are it activates
your door.

It will kinda look like this...
@>If X = 10 Then
@>>If Y = 10 Then
@>>>Wait 1200 frames
@>>>If X = 10 Then
@>>>>If Y = 10 Then
@>>>>Variable "Open Door" = 1
@>>>>End

@>>>End
@>>End
@>End

I hope this helps... (I have problem explaining things sometimes)

If you need pics or a demo... I could make one if this didn't make sense.
 

Thank you for viewing

HBGames is a leading amateur video game development forum and Discord server open to all ability levels. Feel free to have a nosey around!

Discord

Join our growing and active Discord server to discuss all aspects of game making in a relaxed environment. Join Us

Content

  • Our Games
  • Games in Development
  • Emoji by Twemoji.
    Top