Browse Search Popular Register Upload Rules User list Login:
Search:
[THYME] Time of Day Machine

Image:
screenshot of the scene

Author: oopsurdead

Group: Default

Filesize: 15.99 kB

Date added: 2009-06-04

Rating: 5

Downloads: 414

Views: 786

Comments: 4

Ratings: 1

Times favored: 0

Made with: Phun

Tags:

Scene tag

A small machine that will do day and night cycles. Uses pure mathematics to calculate the sky color so modify the formulas in the square to change up the values. Quick guide:
Change the numbers after the + to make the days/nights longer or shorter or change the sky colors.
Change the divide number to slow down (make the numbers larger) or speed up (make the numbers less) the whole cycle. The numbers must be the same or it looks bad.
Feel free to use this in your scenes as long as you credit me.
Please log in to rate this scene
edit
Similar scenes
Title: Thyme tutorial---attraction color text
Rating: 5
Filesize: 48.64 kB
Downloads: 289
Comments: 1
Ratings: 1
Date added: 2014/07/12 22:24:22
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: CNC Milling
Rating: 5.625
Filesize: 72.13 kB
Downloads: 1746
Comments: 7
Ratings: 2
Date added: 2009/05/08 21:08:03
Made with: Phun
Rating: rated 5.6
download
Title: A Better Timebase
Rating: 5
Filesize: 28.88 kB
Downloads: 301
Comments: 28
Ratings: 1
Date added: 2016/01/02 02:12:54
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: THYME CLOCK V2
Rating: 5.375
Filesize: 323.61 kB
Downloads: 450
Comments: 4
Ratings: 2
Date added: 2013/07/06 07:07:23
Made with: Algodoo v2.1.0
Rating: rated 5.4
download
Title: Thyme with density demo
Rating: 5.625
Filesize: 28.71 kB
Downloads: 482
Comments: 2
Ratings: 2
Date added: 2009/06/28 17:18:56
Made with: Phun
Rating: rated 5.6
download
Title: Thyme Artillery
Rating: 7
Filesize: 33.44 kB
Downloads: 2666
Comments: 5
Ratings: 7
Date added: 2009/03/22 15:34:18
Made with: Phun
Rating: rated 7
download
Instead of using the onCollied script you could have put the color changing code into App.background.skyColor.

App.background.skyColor =[sin(Sim.time / 10) - 0.30000001, sin(Sim.time / 10) - 0.30000001, sin(Sim.time / 10) + 0.5, 1]
When I tried that it didnt work. Did it work for you?
EDIT: Yeah, that only changes the color based on the value of the time when the command was issued. The collide is necessary to make it update itself.
Last edited at 2009/06/05 02:31:18 by oopsurdead
Sorry, I meant to say that you need to put curly's around it like so.

App.background.skyColor = {[sin(Sim.time / 10) - 0.30000001, sin(Sim.time / 10) - 0.30000001, sin(Sim.time / 10) + 0.5, 1]}

Even though the onCollide is not need pretty good scene. 10/10 :D
Okay, that works! Thank you!