Page 1 of 1
[answered] How To add ...
Posted: 24 Mar 2021, 08:51
by Yakka
How to add night animation on, rotation support building?
Re: [help] How To add ...
Posted: 24 Mar 2021, 10:07
by Kulche
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.
Re: [help] How To add ...
Posted: 24 Mar 2021, 11:47
by Yakka
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.

Re: [help] How To add ...
Posted: 24 Mar 2021, 18:50
by Kulche
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.
Re: [help] How To add ...
Posted: 27 Mar 2021, 18:43
by Yakka
Now How About Normal Animation,also maybe if you had example for car type night animation

Re: [help] How To add ...
Posted: 27 Mar 2021, 20:32
by Kulche
works the same way; they are all animations.
Re: [help] How To add ...
Posted: 27 Mar 2021, 23:08
by THEMAX
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"
}
]

- Themax_TrExpStandardPlatform_Side_2.png (2.99 KiB) Viewed 5583 times

- Themax_TrExpStandardPlatform_Side_2Night.png (1.66 KiB) Viewed 5583 times
Re: [help] How To add ...
Posted: 31 Mar 2021, 15:05
by Yakka
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
Re: [help] How To add ...
Posted: 02 Apr 2021, 02:39
by Yakka
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