[RMVX ACE] IS THIS POSSIBLE WITH COMMON EVENTS?
Posts
Pages:
1
I've created a system with a pseudo real life time mechanic with a small picture of that time that changes every 1 minute and even becomes dark when the clock strikes 8! HOWEVER when I move to another map the timer starts back at the very first hour. Is there a way to have the common event "remember" it's place as the player moves to another map?
author=Sated
Use variables instead of the timer.
http://www.rpgmakervxace.net/topic/2373-day-and-night-time-tutorial-with-demo/
This is helpful but when i try to download the demo, Google says its malicious. But it's a very good tutorial.
I have the system, I just need it work when the map changes and not go back to the beginning of the common event, if I could download the demo i could see how they do it.
Thank you very much though.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Create a variable named "Timer Display" or something like that. Every time the clock changes, record the new time into that variable. If you are tracking hours and minutes separately, you will need two variables.
Create a switch named "Timer has started" or something like that. Add a new conditional branch at the beginning of the common event, just before it starts the timer. In the conditional branch, check to see if the switch is turned on. If not, turn it on and continue starting the timer from zero like you were before. If it is already turned on, then instead of restarting the timer from zero, set the timer to the time stored in your variables, and start it from there.
Create a switch named "Timer has started" or something like that. Add a new conditional branch at the beginning of the common event, just before it starts the timer. In the conditional branch, check to see if the switch is turned on. If not, turn it on and continue starting the timer from zero like you were before. If it is already turned on, then instead of restarting the timer from zero, set the timer to the time stored in your variables, and start it from there.
I think that's exactly what I did. I'll try and describe it and someone can tell me where I went wrong.
-OK so it's all in common events-
I DO have a switch that starts the timer "Timer ON"
When that is on, the common event "Time" begins
In "Time" a small picture of the hour is displayed in the top left corner
since 1 minute is 60 sec is 3600 frames and "wait" can only go up to 999 frames, I have it wait 900 frames four times to simulate a minute.
Then the hour will change and 1 is added to the variable Time
so 8am is 1 9am is 2 10am is and so on.
HOWEVER when I go to another map the "Time" variable goes back to 1 regardless of what has been.
-OK so it's all in common events-
I DO have a switch that starts the timer "Timer ON"
When that is on, the common event "Time" begins
In "Time" a small picture of the hour is displayed in the top left corner
since 1 minute is 60 sec is 3600 frames and "wait" can only go up to 999 frames, I have it wait 900 frames four times to simulate a minute.
Then the hour will change and 1 is added to the variable Time
so 8am is 1 9am is 2 10am is and so on.
HOWEVER when I go to another map the "Time" variable goes back to 1 regardless of what has been.
In writing this I have found another angle to try
okay so I still have the wait 900frames 4 times and adding 1 to the variable time.
However, I noticed that at the beginning I have the "Time" variable SET to 1 instead of adding 1 for the first hour, as I might need that for the new day, but maybe that's whats messing me up.
So anyway, I could have the player "check a watch" that is another common event that waits for a button press and reads whatever number the "time" variable is on.
Like push button, variable "time" is at 3, flashes that is 10am
yeah...hopefully that works but all suggestions are welcome!
okay so I still have the wait 900frames 4 times and adding 1 to the variable time.
However, I noticed that at the beginning I have the "Time" variable SET to 1 instead of adding 1 for the first hour, as I might need that for the new day, but maybe that's whats messing me up.
So anyway, I could have the player "check a watch" that is another common event that waits for a button press and reads whatever number the "time" variable is on.
Like push button, variable "time" is at 3, flashes that is 10am
yeah...hopefully that works but all suggestions are welcome!
Google says a lot of things are malicious. The secret is to not use Google. I use Firefox but it crashes like crazy. People are talking about Opera.
LockeZ
I'd really like to get rid of LockeZ. His play style is way too unpredictable. He's always like this too. If he ran a country, he'd just kill and imprison people at random until crime stopped.
5958
Yeah, at the beginning, check to see if the thingy has started before, and don't set the time to 1 if it already has.
Google tends to warn you about any program it hasn't heard of, I think?
Google tends to warn you about any program it hasn't heard of, I think?
I've done it! It was a PAIN in the butt but it finally works. Thank you LockeZ! I read your instructions super carefully and finally got it!
I used the conditional branch that checks for the switch in the beginning and after that I had a set of other conditional branched that check for the labels I put after every hour. Like if the variable "time" is at 3 it knows to jump to label 10am! I also found that I had the variable "time" add 1 to itself AFTER the hour (what a DUMMY), like it would add 1 to MAKE the variable know it was 10am AFTER it was already 10am. Thank you so much everyone! Now I can work on there rest of this game!
I used the conditional branch that checks for the switch in the beginning and after that I had a set of other conditional branched that check for the labels I put after every hour. Like if the variable "time" is at 3 it knows to jump to label 10am! I also found that I had the variable "time" add 1 to itself AFTER the hour (what a DUMMY), like it would add 1 to MAKE the variable know it was 10am AFTER it was already 10am. Thank you so much everyone! Now I can work on there rest of this game!
Pages:
1













