Hello Guest, please login or register.
Did you miss your activation email?
Login with username, password and session length.

Pages: [1]   Go Down

Author Topic: [Request / Listing] Goodnite clock engine - events at X hour?!?!  (Read 1774 times)

0 Members and 1 Guest are viewing this topic.
[Request / Listing] Goodnite clock engine - even...
« on: May 27, 2006, 12:41:51 am »
  • ^This is my sprite comments char
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 226
 ;D hey, i just got Goodnite's engine and it really rocks! but i just wanna know how to make events at certain hour like... when it is 7am of 2nd day a textboc appear i know hoy to make the textbox but  cant pull of the right script for the time event XD
« Last Edit: February 10, 2012, 07:35:27 am by Niek »
Logged



i'm working on:

I support and i'm part of the team of:

dylan623

Re: Goodnite clock engine - events at X hour?!?!
« Reply #1 on: May 27, 2006, 12:48:12 am »
;D hey, i just got Goodnite's engine and it really rocks! but i just wanna know how to make events at certain hour like... when it is 7am of 2nd day a textboc appear i know hoy to make the textbox but  cant pull of the right script for the time event XD
Something like this: (I know it's not real GML)
if time is equal to x perform action
Logged
Re: Goodnite clock engine - events at X hour?!?!
« Reply #2 on: May 27, 2006, 01:01:41 am »
  • ^This is my sprite comments char
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 226
 ;D i just get it:
Code: [Select]
if global.DayTime="Day 1, 7:01 am"{}just replace Day X, X:XX Xm to suit your needs
Logged



i'm working on:

I support and i'm part of the team of:

Goodnight

Once and future Captain
Re: Goodnite clock engine - events at X hour?!?!
« Reply #3 on: May 27, 2006, 01:20:39 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Yep, that will work, but you might have to use another variable to make sure it doesn't happen again, because it will be "Day 1, 7:01 am" for more than one step.

That's something I didn't plan very well, so I might have to make a little mod so that it works better. Thanks for bringing that to my attention. ;D
Logged
Re: Goodnite clock engine - events at X hour?!?!
« Reply #4 on: May 27, 2006, 01:24:02 am »
  • ^This is my sprite comments char
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 226
 ;D no, it worked absolutely fine, look:
Code: [Select]
if global.DayTime="Day 3, 6:00 am"{global.ClockTimer=1}//This will mkae the clock start counting donw when day 3 starts
if global.DayTime="Day 3, 12:00 am"{global.TimerFlash=1}//this will mkae the timer flash when hlaf day is left(i dunno why but this doesnt work, it don flash.
if global.DayTime="Day 4, 6:00 am"{game_end()}//when day 3 is over the games closes

Cap. Goodnite can you give me your e-mail so i can add you to msn?
Logged



i'm working on:

I support and i'm part of the team of:

Goodnight

Once and future Captain
Re: Goodnite clock engine - events at X hour?!?!
« Reply #5 on: May 27, 2006, 01:29:56 am »
  • With a Capital G
  • *
  • Reputation: +1/-0
  • Offline Offline
  • Gender: Male
  • Posts: 706
Sure, I'll PM my address to you.

The reason it works fine for you is that there's no adverse effects to setting those variables more than once, because you only notice the change once, and of course you can only game_end() once! But try changing one of those timed events to a show_message("whatever"), you'll see it shows the message more than once. I am going to have to work a fix into that, I'm just deciding if I should post that info somewhere, or release an update.. ???
Logged
Re: Goodnite clock engine - events at X hour?!?!
« Reply #6 on: May 27, 2006, 01:33:33 am »
  • ^This is my sprite comments char
  • *
  • Reputation: +0/-0
  • Offline Offline
  • Posts: 226
i noticed that when you use a trw textbox while the clock is runing, after you press ok for ending the clock speed the time that it was frezzed coz trw textbox XD
Logged



i'm working on:

I support and i'm part of the team of:
Pages: [1]   Go Up

 


Contact Us | Legal | Advertise Here
2013 © ZFGC, All Rights Reserved



Page created in 0.063 seconds with 51 queries.

anything