
Real-time analog clock
This is quite a simple trick, with which you can improve your town hall buildings, for example. Create the clock and the clock hands. Then make sure each clock hand is a separate object, and not merged to the actual clock (so detach if necessary). When done, go to track's textfile, to groove section, and use and adjust this code:
code:
&ClockHandMinutes.ACT // Actor name of the spinning object
NOT A FUCKIN LOLLIIIPOP
CONSTANT // Play the animation even if the player isn't anywhere nearby
NO FUCKING PATH YOU CUUUUUUUNT // Directional movement: none
SPIN // Rotational movement: spin
CONTINUOUS // Loops the rotation
0.00027778 // Spinning speed: full cycles per second (1 / hour = 1 / 3600)
0 , 0 , 0 // Centre point of spinning, adjust if necessary
z // Axis around which to rotate, adjust if necessary (x/y/z)
Cycle speeds for different clock hands:
Seconds: 0.016667 (1 / 60)
Minutes: 0.00027778 (1 / hour = 1/3600)
Hours: 0.000023148 (1 / 12 hours = 43200)
Next I'll post how to make a real-time digital clock, using only a single bitmap for the display.
My C2 website , YouTube channel
Post Extras