Age
13
Gender
Male
Location
England
Website
http://mrxgames.weebly.com
Public Email
mrxgames@gmail.com
In this tutorial I am going to show you how to make an analogue clock in TGF2/MMF2.
First insert the following objects:
* An active (make it a circle) and name it "Clock (outside)".
* Another active (make it look like the minute hand of a clock) and name it "Minute Hand".
* Another active (make it look like the hour hand of a clock) and name it "Hour Hand".
* One more active (make it look like the second hand of a clock) and name it "Second Hand".
Have all of the hand facing up.
Now add the following events:
+ Every 01"-00
- Second Hand: Set angle to Angle( "Second Hand" )-6
This will replicate the second hand.
+ Every 1'00"-00
- Minute Hand: Set angle to Angle( "Minute Hand" )-6
This will replicate the minute hand.
+ Every 1: 1'00"-00
- Hour Hand: Set angle to Angle( "Hour Hand" )-30
This will replicate the hour hand.
And your done!
If you want to add a debugging system just add 3 counters, 1 for the second hand, 1 for the minute hand and 1 for the hour hand. Then do these events:
+ Every 01"-00
- Second Hand: Set angle to Angle( "Second Hand" )-6
- Second Counter: Add 1 to counter.
This will replicate the second hand.
+ Every 1'00"-00
- Minute Hand: Set angle to Angle( "Minute Hand" )-6
- Minute Counter: Add 1 to counter.
This will replicate the minute hand.
+ Every 1: 1'00"-00
- Hour Hand: Set angle to Angle( "Hour Hand" )-30
- Hour Counter: Add 1 to counter.
This will replicate the hour hand.
Done!