[answered] How To add ...
Moderator: Plugin Moderators
- Yakka
- Inhabitant of a Conurbation
- Reactions:
- Posts: 416
- Joined: 06 Jan 2020, 09:57
- Location: Java-indonesia
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
[answered] How To add ...
How to add night animation on, rotation support building?
Last edited by Yakka on 31 Mar 2021, 15:03, edited 1 time in total.
- Kulche
- Pluche
- Reactions:
- Posts: 1155
- Joined: 07 Jun 2017, 20:28
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: [help] How To add ...
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.
- Kulche
- Pluche
- Reactions:
- Posts: 1155
- Joined: 07 Jun 2017, 20:28
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: [help] How To add ...
Code: Select all
"animation": [
{"id": "1x2l", "x": 16, "y": -16, "frame": 0}
]
- THEMAX
- Inhabitant of a Universe
- Reactions:
- Posts: 4314
- Joined: 14 Sep 2017, 17:30
- Location: Astrellia, UHAE
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: [help] How To add ...
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
- Yakka
- Inhabitant of a Conurbation
- Reactions:
- Posts: 416
- Joined: 06 Jan 2020, 09:57
- Location: Java-indonesia
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: [help] How To add ...
Now how to fix this..Kulche wrote: ↑24 Mar 2021, 18:50Will be applied to frame with index 0, aka the first frame and nothing else.Code: Select all
"animation": [ {"id": "1x2l", "x": 16, "y": -16, "frame": 0} ]
https://www.mediafire.com/download/i03szxrslexcmnb