How to Create a Clock
Материал из Поле цифровой дидактики
Шаблон:See also
This is a tutorial on how to create a clock. This clock returns the player's time because this tutorial uses the block, which is local.
Analogue Clock
Preparation
To start, create three Sprites: one for the hour hand, one for the minute hand, and one for the second hand.
Coding
Second Hand
This is the script for the second hand:
Minute Hand
This is the script for the minute hand:
Hour Hand
This is the script for the hour hand:
Digital Clock
Preparation
Create only one variable named "Digital Time" or "Time" to start.
Coding
24 Hour
This is the script on how to make a 24 hour digital clock:
12 Hour
This is the script for a 12 hour clock:
Examples
- An Analogue Clock: Clock Example by jakel181
- A 24 hour Digital Clock: 24 Hour Clock Example by jakel181