Jump to content
New account registrations are disabed. This website is now an archive. Read more here.
  • 0
albertibay

common event help

Question

umm can someone tell me how to stop common events from restarting when entering a new area

cause i made a 6 phase day and night system the only problem is common events seem to restart when entering a new area

Share this post


Link to post
Share on other sites

14 answers to this question

Recommended Posts

  • 0

Hmm, they shouldnt do that unless you are telling them to. What exactly is reseting, the actual time of day or just the lighting?

Share this post


Link to post
Share on other sites
  • 0

when its night time then i enter another area it the screen color tone goes back to the original one, but stays on the same phase of the system

Share this post


Link to post
Share on other sites
  • 0

Well im not sure, it would help if i see the events you are using in order.

 

Edit: Maybe when the day passes you dont set the phase of day back to 1?

Edited by Saltome

Share this post


Link to post
Share on other sites
  • 0

Hmm you missed the morning picture and copied the afternoon twice. And i kinda need it too.

Share this post


Link to post
Share on other sites
  • 0

Ok first of all, you have no waiting times in your morning stage, so it completely skips over it.

Other than that it works fine, the only problem you might have is when you go back to the map where you start the game it messes up the clock since it starts it again. To fix that go in the event where you first activate the Morning switch. Add a conditional branch, with self-switch A is OFF. Then inside the branch put the switch that starts your clock, also put a Control self-switch event, and set A to ON

Share this post


Link to post
Share on other sites
  • 0

it seems like you are using alot of common events, could you not just utilize varibles, you could have a second, minute and hour variable, just increment the seconds variable at a set speed, then get your minute and hour variable to change accordingly, then you can change your tiniting at a set hour an minute, e.g. condional branch that hour is 6, min is 0 and second is 0, i think it would save alot of switches and common events is all :)

Share this post


Link to post
Share on other sites
  • 0

Yes he could, infact he can use a single common event to increment the phase and update the graphics, two variables to keep track of the current phase and time. Unless he wants to have an actual clock like you suggest, but such detail isn't really needed if all he uses it for is to change the screen color.

 

Um didn't see you there Albertibay, how about i just go and make you a new common event. Unless you want to send me your project to see the exact conditions i cant think of anything else.

 

http://www.mediafire.com/download.php?5kkqdd17laeuoi5

Here, just copy the common event and the map event. Its set up so it goes to next phase of the day every 60 frames, which means once every second. Change the conditional branch that checks Time>60 to however many frames you want each phase to take. And don't forget to change the color every phase uses.

Edited by Saltome

Share this post


Link to post
Share on other sites
  • 0

Yeah, a single common event would probably save you effort in figuring out your mistakes.

 

My thoughts are you may have just forgot to turn off the switches at start up. Make sure the switches are all turned off at first cause they may cause conflicts when entering new maps.

 

By using a single variable for the day/night you could avoid that issue. I'd also check out Day/night scripts that are available here on the site ( ForeverZer0's Climate and Time Script for example) to give you an idea of what to do.

 

You should always remember to look up if the script exists first before making a post cause more often than not the script already exists.

 

If you need more help I could even post an easy event script if you don't find anything you like on other sites if it's still giving you trouble. Just message me.

Share this post


Link to post
Share on other sites
  • 0

thanks never thought of using one common event cause i thought that would break my day-night hud i just copy pasted my old one which was a normal event

Share this post


Link to post
Share on other sites
  • 0

Nah, you can do a lot in a single common event, as long as you get the sequence right everything should work fine.

 

As for your hud, what are you useing?

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...