[answered] How To add ...

Plug-in related stuff can be discussed here.

Moderators: Scenario Moderators, Plugin Moderators

User avatar
Yakka
Inhabitant of a Conurbation
Posts: 417
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

[answered] How To add ...

#1

Post by Yakka » 24 Mar 2021, 08:51

How to add night animation on, rotation support building?
Last edited by Yakka on 31 Mar 2021, 15:03, edited 1 time in total.
User avatar
Kulche
Pluche
Posts: 1201
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#2

Post by Kulche » 24 Mar 2021, 10:07

Try "frame":index in your "animation" array. Index stands for your building's frame number, staring from 0. If you don't apply the frame attribute the animation will be assigned to every frame.
User avatar
Yakka
Inhabitant of a Conurbation
Posts: 417
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#3

Post by Yakka » 24 Mar 2021, 11:47

Kulche wrote: 24 Mar 2021, 10:07 Try "frame":index in your "animation" array. Index stands for your building's frame number, staring from 0. If you don't apply the frame attribute the animation will be assigned to every frame.
:bq
User avatar
Kulche
Pluche
Posts: 1201
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#4

Post by Kulche » 24 Mar 2021, 18:50

Code: Select all

"animation": [
	{"id": "1x2l", "x": 16, "y": -16, "frame": 0}
]
Will be applied to frame with index 0, aka the first frame and nothing else.
User avatar
Yakka
Inhabitant of a Conurbation
Posts: 417
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#5

Post by Yakka » 27 Mar 2021, 18:43

Now How About Normal Animation,also maybe if you had example for car type night animation :)
User avatar
Kulche
Pluche
Posts: 1201
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#6

Post by Kulche » 27 Mar 2021, 20:32

works the same way; they are all animations.
User avatar
THEMAX
Inhabitant of a Universe
Posts: 4314
Joined: 14 Sep 2017, 17:30
Location: Astrellia, UHAE
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#7

Post by THEMAX » 27 Mar 2021, 23:08

Should be helpful, this is how you make a rotation aware night animation for a rotation aware building.

Code: Select all    Reset

[ { "id": "$Themax_TrExpStandardPlatform_Side_2Night", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "Themax_TrExpStandardPlatform_Side_2Night.png", "count": 4, "h": 32, "w": 32 } ], "rotation aware": true }, { "id": "$Themax_TrExpStandardPlatform_Side_2", "type": "decoration", "category": "$cat_Themax_Train_Expansion_0_Stations", "author": "Themax", "width": 1, "height": 1, "frames": [ { "bmp": "Themax_TrExpStandardPlatform_Side_2.png", "count": 4, "h": 32, "w": 32 } ], "animation": [{"id": "$Themax_TrExpStandardPlatform_Side_2Night", "x":0,"y":-25}], "price": 200, "monthly price": 0, "rotation aware": true, "draw ground": true, "water": "0", "power": "0", "build time": 0, "ordinal": 2, "needs road": false, "text": "Decorative platform to improve your train station.", "title": "Decorative platform 1.2" } ]
JSON checker
Check
Themax_TrExpStandardPlatform_Side_2.png
Themax_TrExpStandardPlatform_Side_2.png (2.99 KiB) Viewed 5573 times
Themax_TrExpStandardPlatform_Side_2Night.png
Themax_TrExpStandardPlatform_Side_2Night.png (1.66 KiB) Viewed 5573 times
User avatar
Yakka
Inhabitant of a Conurbation
Posts: 417
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#8

Post by Yakka » 31 Mar 2021, 15:05

THEMAX wrote: 27 Mar 2021, 23:08 Should be helpful, this is how you make a rotation aware night animation for a rotation aware building.

Code

Themax_TrExpStandardPlatform_Side_2.png
Themax_TrExpStandardPlatform_Side_2Night.png
Im thinking about this before, but thanks,i learned something
User avatar
Yakka
Inhabitant of a Conurbation
Posts: 417
Joined: 06 Jan 2020, 09:57
Location: Java-indonesia
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: [help] How To add ...

#9

Post by Yakka » 02 Apr 2021, 02:39

Kulche wrote: 24 Mar 2021, 18:50

Code: Select all

"animation": [
	{"id": "1x2l", "x": 16, "y": -16, "frame": 0}
]
Will be applied to frame with index 0, aka the first frame and nothing else.
Now how to fix this..
https://www.mediafire.com/download/i03szxrslexcmnb
Post Reply Previous topicNext topic

Return to “Plug-In Discussion”