# Repeat Events Set-up

{% hint style="info" %}
This practice is related to [Repeat](https://adofaieditor.gitbook.io/english/events/event-modifiers/repeat-events) Events
{% endhint %}

Creating events that can repeat themselves is possible with the repeat event. Its setup consists in 3 settings: **Repetitions**, **Interval,** and **Target tag**

<figure><img src="https://484108807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2FVi1ahuVQSOgfoW5MD4zp%2Fimagem.png?alt=media&#x26;token=f672f1f6-c813-4f1a-814d-d9436fd2d3ab" alt="" width="342"><figcaption><p>Repeat Event - Settings</p></figcaption></figure>

{% hint style="info" %}
*Check more about* [*Repeat Events*](https://adofaieditor.gitbook.io/english/events/event-modifiers/repeat-events) *on the <mark style="color:purple;">Events</mark> Page*
{% endhint %}

The way repetition works will be to always follow the same actions as an existing event. That same effect has to be **set on the same tile** as the repeat event, or it won't work!

Here is the following example:

For this repeat, let's make the tiles rotate back and forward each beat. For that, let's set the events to Move Tracks and do each action (back, forward) on the editor

<figure><img src="https://484108807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2F3HqtYcuGQb7kouVugfPk%2Fimagem.png?alt=media&#x26;token=60a0a8ca-9310-4585-8d8c-0c30a44e124a" alt="" width="296"><figcaption><p>Move Tracks - 2 Events to move the whole track</p></figcaption></figure>

<div><figure><img src="https://484108807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2FRSRIYInb6SHdxVV8tbDH%2F9.png?alt=media&#x26;token=45f36012-f0d0-4894-abc1-a3d1b8d58c64" alt="" width="191"><figcaption><p>Move Tracks - Event 1 rotates clockwise and has tag "move1"</p></figcaption></figure> <figure><img src="https://484108807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2FuXruL2Y2yUugQCLQjNRV%2F10.png?alt=media&#x26;token=543e78fc-4c14-4ec8-86af-ee3a886321bd" alt="" width="192"><figcaption><p>Move Tracks - Event 2 rotates counter - clockwise and has tag "move2"</p></figcaption></figure></div>

Now with both events ready and both with their unique tags, let's add a repeat event **on the same tile.** We want these events to repeat 3 times after the original move track and for each repeat to take 2 beats in between sets

<figure><img src="https://484108807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2FiC0efdUnac7p7H5dblYG%2Fimagem.png?alt=media&#x26;token=bbacfcbf-3cdf-4593-86f8-35ddcfd65f5d" alt="" width="231"><figcaption><p>Repeat Events - Setting up 3 repetitions happening every 2 beats</p></figcaption></figure>

Notice how the chart is pretty much empty, no events aside from the repeat and the move tracks are present on this chart. See the video to see the final effect come to live

<figure><img src="https://484108807-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2FmAuXewPOTmhkL9RAax5x%2Fimagem.png?alt=media&#x26;token=efb6b902-c0ba-481b-8a8e-7de0584b90b4" alt="" width="563"><figcaption><p>Editor - Testing the Repeat Event</p></figcaption></figure>

{% embed url="<https://files.gitbook.com/v0/b/gitbook-x-prod.appspot.com/o/spaces%2Fipb5NkFjq0eBOIGewqlQ%2Fuploads%2F8KnaPQOPUGWGwgcIGbbe%2FRepeat%20Event%20Example.mp4?alt=media&token=ac136a1b-6af9-4014-af47-7d821694566b>" %}
