## Date dependent animations

Learn here how to create and use plugins.

Moderator: Plugin Moderators

Lobby
Developer
Reactions:
Posts: 3184
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

### Date dependent animations

With version 332 you will be able to show an animation only on a specific date (range). For example, if we want to show an animation with id $animationblinkingredlight3x3 (this one is built-in into the game) only on 2nd, 3rd and 4th december. Then we might add this code to our building/road plugin: Code: Select all  "animation":[ { "id":"$animationblinkingredlight3x3","x":15,"y":-1,
"date":{
"start day":2,
"start month":12,
"days":3
}
}
],
If you want the animation on multiple date ranges with gaps in between you may provide multiple animation spots, each for a single date range.
...

CommanderABab
AB
Reactions:
Posts: 6859
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

### Re: Date dependent animations

Great!

A suggestion
587🆎️

Online
Brody Craft
Inhabitant of a Infinity
Reactions:
Posts: 7150
Joined: Tue Jan 24, 2017 11:15
Location: SE Asia
Plugins: Show
Version: Beta
Phone model: Samsung Galaxy Tab 3

### Re: Date dependent animations

Can you lock animation for the amout of time you set?
When you get to be called a Board Index because you are too good.>:3

Lobby
Developer
Reactions:
Posts: 3184
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

### Re: Date dependent animations

No, you cannot lock the animation, but you might do something similar by having to animations, a static and a non-static one. By switching between these two dependent on date you might create a similar effect.

You can also do it weekly or monthly by using repeat:

Code: Select all

    "animation":[
{
"id":"$animationblinkingredlight3x3","x":15,"y":-1, "date":{ "start day":2, "days":3, "repeat":"weekly" } } ], Valid arguments for repeat are yearly, monthly and weekly. If you want to set an amount of days until it should repeat you can use days total: Code: Select all  "animation":[ { "id":"$animationblinkingredlight3x3","x":15,"y":-1,
"date":{
"start day":1,
"days":1,
"days total":2
}
}
],
This example only shows the animation any second day.
...

JustAnyone
Junior Developer
Reactions:
Posts: 2441
Joined: Sun Jul 23, 2017 12:45
Plugins: Show
Version: Beta
Phone model: Picklephone S5

### Re: Date dependent animations

Lobby wrote:
Tue Aug 15, 2017 14:01
No, you cannot lock the animation, but you might do something similar by having to animations, a static and a non-static one. By switching between these two dependent on date you might create a similar effect.

You can also do it weekly or monthly by using repeat:

Code: Select all

    "animation":[
{
"date":{
"start day":2,
"days":3,
"repeat":"weekly"
}
}
],
Valid arguments for repeat are yearly, monthly and weekly.
Could I use the same code for notifications?

Lobby
Developer
Reactions:
Posts: 3184
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone model: S7 edge

### Re: Date dependent animations

@JustAnyone see this thread for date dependent fun
...

THEMAX
Inhabitant of a Supercluster
Reactions:
Posts: 3639
Joined: Thu Sep 14, 2017 17:30
Location: Astrellia, UHAE
Plugins: Show
Version: Beta

### Re: Date dependent animations

We can make weekly firework!!!!
Emperor of Atlantean federated empire

Founder state of Internationxal council
Leader of AEOY and steel pact

Imran M
Metropolitan
Reactions:
Posts: 131
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

### Re: Date dependent animations

So, I could make a rocket fly up on December 1st, and I could make it come back on the 31st of December? I'm making a new plugin. But, I need to make two animations, one for leaving, and one for landing, and I'm thinking of using the other type of animation, like move x
I HATE doing roofs, and I can't find any good window colours.
I can also help, most of the time. As long as it's fun, or something easy, like making Json files.

Imran M
Metropolitan
Reactions:
Posts: 131
Joined: Wed Oct 24, 2018 13:41
Plugins: Show
Phone model: Huawei p8 lite

### Re: Date dependent animations

Oh, I dumb. I just realized it. Thanks!
I HATE doing roofs, and I can't find any good window colours.
I can also help, most of the time. As long as it's fun, or something easy, like making Json files.

### Who is online

Users browsing this forum: Between3Characters and 1 guest

﻿