<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.castle.xyz/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ashh3b0oke</id>
	<title>Castle Wiki - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.castle.xyz/wiki/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Ashh3b0oke"/>
	<link rel="alternate" type="text/html" href="https://wiki.castle.xyz/Special:Contributions/Ashh3b0oke"/>
	<updated>2026-04-22T05:17:50Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.36.1</generator>
	<entry>
		<id>https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=600</id>
		<title>Clock</title>
		<link rel="alternate" type="text/html" href="https://wiki.castle.xyz/wiki/index.php?title=Clock&amp;diff=600"/>
		<updated>2023-04-13T07:21:06Z</updated>

		<summary type="html">&lt;p&gt;Ashh3b0oke: /* Synchronizing events with the clock */ I removed the use of two “use”.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;The &amp;#039;&amp;#039;&amp;#039;Clock&amp;#039;&amp;#039;&amp;#039; is a system for measuring time in [[Card|Cards]]. It is useful for adding rhythmic events and logic to games, in particular when combined with the [[Music]] behavior, but it can be used by itself for anything where you need to measure time in a structured way.&lt;br /&gt;
&lt;br /&gt;
== Clock units ==&lt;br /&gt;
The clock measures time in bars, beats, and steps. Bars are the largest unit of time, several beats make up a bar, and several steps make up a beat. By default, there are four steps to a beat, and four beats to a bar.&lt;br /&gt;
&lt;br /&gt;
The clock has a tempo measured in beats per minute. By default, the clock starts at 120 bpm.&lt;br /&gt;
&lt;br /&gt;
== Clock scope ==&lt;br /&gt;
There is one clock shared across the entire card. All of the [[Music]] across all of the [[Actor|Actors]] in the card will synchronize to the clock, and all time-related [[Rule|Rules]] in the card have the option of synchronizing to the clock.&lt;br /&gt;
&lt;br /&gt;
When the player moves between cards in the same deck, the previous card&amp;#039;s clock will finish its current bar before adopting the settings in the next card&amp;#039;s clock. This means that if both cards share the same clock settings, any music which was already playing won&amp;#039;t get interrupted by the navigation between cards.&lt;br /&gt;
&lt;br /&gt;
== Modifying the clock ==&lt;br /&gt;
From the editor, press the &amp;#039;&amp;#039;&amp;#039;Gear&amp;#039;&amp;#039;&amp;#039; icon at the top of the screen to open the Card Settings sheet. Then navigate to the &amp;#039;&amp;#039;&amp;#039;Clock&amp;#039;&amp;#039;&amp;#039; tab on that sheet. From here you can change the beats per bar, steps per beat, and tempo which will be used when the card starts.&lt;br /&gt;
&lt;br /&gt;
While the card is playing, you can use the &amp;#039;&amp;#039;&amp;#039;Set clock tempo&amp;#039;&amp;#039;&amp;#039; response inside a [[Rule]] to change the tempo. You can read the current tempo using the &amp;#039;&amp;#039;&amp;#039;Clock tempo&amp;#039;&amp;#039;&amp;#039; [[Expression]].&lt;br /&gt;
&lt;br /&gt;
== Synchronizing events with the clock ==&lt;br /&gt;
If your main goal is to play music, the best approach is to use the built-in [[Music]] behavior. If you want to do something more interactive, such as synchronize in-game events with the music, or with each other, you can use the clock.&lt;br /&gt;
&lt;br /&gt;
Within [[Rule|Rules]], any time-related [[Response]] can either use unstructured seconds (default) or can choose to use clock units. For example, the &amp;#039;&amp;#039;&amp;#039;Wait&amp;#039;&amp;#039;&amp;#039; response can &amp;#039;&amp;#039;&amp;#039;Wait for 1 second&amp;#039;&amp;#039;&amp;#039;, but it can also &amp;#039;&amp;#039;&amp;#039;Wait for 1 beat&amp;#039;&amp;#039;&amp;#039; or &amp;#039;&amp;#039;&amp;#039;Wait until the next beat&amp;#039;&amp;#039;&amp;#039;. Similarly, the [[Repeat]] response can either &amp;#039;&amp;#039;&amp;#039;Repeat every 1 second&amp;#039;&amp;#039;&amp;#039;, or it can &amp;#039;&amp;#039;&amp;#039;Repeat every beat/bar/step&amp;#039;&amp;#039;&amp;#039;.&lt;br /&gt;
&lt;br /&gt;
The music-specific rule responses also contain options to synchronize with the clock. For example, you can do something like: &amp;#039;&amp;#039;&amp;#039;Play this actor&amp;#039;s song at the next bar&amp;#039;&amp;#039;&amp;#039;.&lt;/div&gt;</summary>
		<author><name>Ashh3b0oke</name></author>
	</entry>
</feed>