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

Views: 1011

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: Chocolate Producer (Very big machine)
Rating: 5
Filesize: 73.58 kB
Downloads: 1581
Comments: 1
Ratings: 1
Date added: 2009/07/21 14:07:14
Made with: Phun
Rating: rated 5
download
Title: CNC Milling
Rating: 5.625
Filesize: 72.13 kB
Downloads: 2020
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: 423
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: 749
Comments: 2
Ratings: 3
Date added: 2009/06/26 05:34:23
Made with: Phun
Rating: rated 5.4
download
Title: Fireworks (THYME)
Rating: 5
Filesize: 34.77 kB
Downloads: 410
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: 1409
Comments: 0
Ratings: 1
Date added: 2021/07/19 10:52:03
Made with: Algodoo v2.1.0
Rating: rated 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!