Night animations video-tutorial

Learn here how to create and use plugins.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Night animations video-tutorial

#1

Post by FVI »

Hello everyone!

Lately, i have figured out how to make a night animation, and so, I created this new video.

This video both explains how textures and coding works, explaining also how to debug a decentralized night frame, thing that stops many people from making night animations.

Once I understood it, I started to find them relatively easy, and with this video, i hope you will understand it too!

Here is the link to the video
https://youtu.be/1LzUVtXNfsQ?si=Xo9GsSWVcsoY8Dq7

If you want the code I used, feel free to take, study or edit it!
Do not worry for the red dots, they are just spaces and they should not ruin the code.

Code: Select all    Reset

[   { "id": "$nightanimation123", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "HTHLM1.png", "count": 1, "h": 32, "w": 32 } ], "rotation aware": false},   {     "type": "residential",     "id": "$greenhalftimbredhouse",     "text": "A house",     "author": "FVI",     "ordinal": 1,     "meta": {       "pca": {         "version": "4.0.3"       }     },     "frames": [       {         "bmp": "HTH5.png"       }     ],     "width": 1,     "height": 1,     "needs road": false,     "draw ground": true,     "animation": [{"id": "$nightanimation123", "x":0,"y":-25}]   } ]
JSON checker
Check
Good luck! ;)

User avatar
DestinedGamer2
Some Tree
Posts: 204
Joined: 23 Aug 2023, 13:55
Location: South Asia
Plugins: Showcase Store
Contact:

Plugin Creator

Platform

Re: Night animations video-tutorial

#2

Post by DestinedGamer2 »

What does the Rotation Aware do?

User avatar
CommanderABab
AB
Posts: 11240
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night animations video-tutorial

#3

Post by CommanderABab »

DGYT wrote:
02 Feb 2024, 18:19
What does the Rotation Aware do?
If you provide two or four frames and set "rotation aware": true, the image changes to the next frame when the map rotates.

User avatar
Indobaol
Settler
Posts: 1
Joined: 28 Sep 2022, 06:36

Re: Night animations video-tutorial

#4

Post by Indobaol »

still struggling to make a night animaton for my plugin XD

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night animations video-tutorial

#5

Post by FVI »

Indobaol wrote:
15 Feb 2024, 14:31
still struggling to make a night animaton for my plugin XD
I am sorry for that. What in particular do you struggle in? Maybe I can help you.

User avatar
Muhdyit
Settler
Posts: 1
Joined: 26 Apr 2024, 14:08

Re: Night animations video-tutorial

#6

Post by Muhdyit »

Animasi malam

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night animations video-tutorial

#7

Post by FVI »

Note:

In the night animation coding part, this attributes

Code: Select all    Reset

"count": 1, "h": 32, "w": 32
JSON checker
Check
can cause the night animation not to work. If you are facing issues like animation not showing up or not working code, consider to attempt removing them.

User avatar
stepa12345
Villager
Posts: 19
Joined: 01 Jul 2021, 13:19

Re: Night animations video-tutorial

#8

Post by stepa12345 »

I thought fun was needed for night animation, but it turns out that you can do without it?

User avatar
stepa12345
Villager
Posts: 19
Joined: 01 Jul 2021, 13:19

Re: Night animations video-tutorial

#9

Post by stepa12345 »

Thanks a lot for the code, I couldn't get my code to work in any way, so I had to copy yours. (I will definitely mention you in the description of the plugin)

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night animations video-tutorial

#10

Post by FVI »

You're welcome!

User avatar
rencute28mr
Villager
Posts: 8
Joined: 21 Feb 2025, 02:46

Re: Night animations video-tutorial

#11

Post by rencute28mr »

how to determine x and y? is it just a random number?

User avatar
FVI
Inhabitant of a Galaxy
Posts: 2364
Joined: 22 Feb 2022, 18:00
Location: The largest island in Europe
Plugins: Showcase Store
Version: Beta

Platform

Re: Night animations video-tutorial

#12

Post by FVI »

rencute28mr wrote:
26 Feb 2025, 00:58
how to determine x and y? is it just a random number?
No, they control the position of the night animation. If the night animation appears below where it should be, you need to lower "y" to move it up and do the opposite if it is above

Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”