Solarus Forum

Community => Your scripts => Topic started by: Zefk on December 04, 2016, 12:05:25 am

Title: Time System Script + Clock + Day Night Cycle
Post by: Zefk on December 04, 2016, 12:05:25 am
About:
This is a time system script I did yesterday. I would not call it advanced, but it is pretty good.

Download demo:
Time System (https://mega.nz/#!2AlUEDzY!B4Xj80nJ7fJEB5KbGjKEjRoOZM_YWwi19kzCtOthTQc)
Time System Day Night Cycle
 (https://mega.nz/#!2E9SjDbA!I2LX-A7HOuMue_O0iG2Q5vA9jzoweyXlrBO7opJaOo8)

Features:
1.Use bitmaps(png,etc) for clock
2.Use of sol.text_suface for font packages (Any Solarus compatible font package you want)
3.Able can change months, seasons, and days. EX: Pumpkin day!
4.The ability to easily change the text and coordinates of the text in the, "CHANGE SETTINGS AREA:".
5.Able to change the speed. Change time.timer = 1000 (1 second) to a lower number
6.Easy to change! Go down to the comment, "CHANGE SETTINGS AREA:" at the beginning of the script.
7.A RGB color reference comment list at the end of the script
8.The ability to easily change the font in, "CHANGE SETTINGS AREA:."
9.Easily change the font color in, "CHANGE SETTINGS AREA:." Uses RGB color, so check the reference list at the end of the script.
10.Easily change the font size in, "CHANGE SETTINGS AREA:."
11.Day night cycle

YouTube Preview:
Time System (https://youtu.be/hHmrHbklhzc)

Gif Preview:
(https://media.giphy.com/media/l0MYuO8bgNctGCfqE/source.gif)
(https://media.giphy.com/media/3oriO6O4timVbZqeZy/source.gif)
Title: Re: Time System Script
Post by: Zefk on December 04, 2016, 04:21:51 pm
Update:
-I added a basic day_night_cycle to the time system. It is able to be customized in the "change area" too.

I thought it would be pointless to make this a new post because it is just part of the time system. The script is more accurate in the demo than in the gif. I decided to make it easier to customize after making the gif.

Download demo:
Time System Day Night Cycle
 (https://mega.nz/#!2E9SjDbA!I2LX-A7HOuMue_O0iG2Q5vA9jzoweyXlrBO7opJaOo8)

(https://media.giphy.com/media/3oriO6O4timVbZqeZy/source.gif)