|
| 02 Jun 2014 04:35 PM |
I've never been good at scripting, so can I have some guidance on how to write a Day to Night Cycle Script? Don't give it to me all set up, I want to learn how to do this on my own. I just need the commands for timeset or whatever it is, how to set time between changes, ( I think wait 60 is one second, but I'm not sure how many milliseconds is in one second) and the infinite repeat loop.
Thanks, Builder1351
:) |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2014 05:38 PM |
The time of day is in the game The time of day is in the lighting set the time of day to something between 0:00 and 24:00
|
|
|
| Report Abuse |
|
|
|
| 02 Jun 2014 06:02 PM |
But how do I do the wait? Is it 60 millieconds per 1 second or not?
|
|
|
| Report Abuse |
|
|
Xsysix
|
  |
| Joined: 29 Mar 2014 |
| Total Posts: 1182 |
|
|
| 02 Jun 2014 06:08 PM |
wait(1) waits 1 second.
wait(1/1000) waits a millisecond.
- Add 1.5k | Deplexity | its a lego men game stop worrying |
|
|
| Report Abuse |
|
|
|
| 02 Jun 2014 06:31 PM |
while true do for I = 1,1440 do wait(1) game.Lighting:SetMinutesAfterModnight(I) end end
I think... I'm not sure |
|
|
| Report Abuse |
|
|
cntkillme
|
  |
| Joined: 07 Apr 2008 |
| Total Posts: 44956 |
|
|
| 02 Jun 2014 06:35 PM |
| 1000 ms per second, not 60. |
|
|
| Report Abuse |
|
|
|
| 03 Jun 2014 11:31 AM |
OK thanks because I have a programming app on my 3DS that uses the BASIC programming language from microsoft, and in that you put "wait (60)" for one second so I wasn't sure if it was the same or not. Thanks.
-Builder1351 |
|
|
| Report Abuse |
|
|