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: 675

Views: 1150

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: A Better Timebase
Rating: 5
Filesize: 28.88 kB
Downloads: 507
Comments: 28
Ratings: 1
Date added: 2016/01/02 02:12:54
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Ball Machine 3. ( Made with Thyme.)
Rating: 5.4444
Filesize: 54.55 kB
Downloads: 828
Comments: 2
Ratings: 3
Date added: 2009/06/26 05:34:23
Made with: Phun
Rating: rated 5.4
download
Title: Time Delayer
Rating: 5
Filesize: 82.36 kB
Downloads: 1019
Comments: 5
Ratings: 1
Date added: 2025/01/27 14:35:58
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Fireworks (THYME)
Rating: 5
Filesize: 34.77 kB
Downloads: 478
Comments: 0
Ratings: 1
Date added: 2009/06/20 12:33:03
Made with: Phun
Rating: rated 5
download
Title: inf+ corp. Coffee Dispenser
Rating: 5
Filesize: 147.46 kB
Downloads: 1640
Comments: 0
Ratings: 1
Date added: 2021/07/19 10:52:03
Made with: Algodoo v2.1.0
Rating: rated 5
download
Title: Gear war machine
Rating: 5.5
Filesize: 122.87 kB
Downloads: 1381
Comments: 4
Ratings: 4
Date added: 2009/06/03 17:42:52
Made with: Phun
Rating: rated 5.5
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!