Night Animations
Moderators: Scenario Moderators, Plugin Moderators
Re: Night Animations
could some one help me, what is wrong with my way to define .json file
Code: Select all Reset
[ { "id":"Lampu001", "type":"animation", "frames":[{"bmp": "Lampu 1.png"}], "light": true, "light switching": true }, { "id":"Lampu002", "type":"animation", "frames":[{"bmp": "Lampu 2.png"}], "light": true, "light switching": true }, { "id": "$HuResTp1", "type": "residential", "author": "lalulali", "width": 1, "height": 1, "frames": [{"bmp": "Human Res 1.png"}], "animation": {"id":"Lampu001", "x": 20, "y": -2}, {"id":"Lampu001", "x": 20, "y": -6}, {"id":"Lampu001", "x": 20, "y": -10}, {"id":"Lampu002", "x": 7, "y": -4} "level": 1, "people": 6, "title": "Human Residence", "text": "Human Residence Type 1 For Poor People", "price": 10, "bulldoze price": 15, "build time": 5 } ]
JSON checker
- CommanderABab
- AB
- Posts: 11240
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Night Animations
Code: Select all
[
{
"id":"Lampu001",
"type":"animation",
"frames":[{"bmp": "Lampu 1.png"}],
"light": true,
"light switching": true
},
{
"id":"Lampu002",
"type":"animation",
"frames":[{"bmp": "Lampu 2.png"}],
"light": true,
"light switching": true
},
{
"id": "$HuResTp1",
"type": "residential",
"author": "lalulali",
"width": 1,
"height": 1,
"frames": [{"bmp": "Human Res 1.png"}],
"animation": [{"id":"Lampu001", "x": 20, "y": -2},
{"id":"Lampu001", "x": 20, "y": -6},
{"id":"Lampu001", "x": 20, "y": -10},
{"id":"Lampu002", "x": 7, "y": -4}],
"level": 1,
"people": 6,
"title": "Human Residence",
"text": "Human Residence Type 1 For Poor People",
"price": 10,
"bulldoze price": 15,
"build time": 5
}
]
Code: Select all Reset
[ { "id":"Lampu001", "type":"animation", "frames":[{"bmp": "Lampu 1.png"}], "light": true, "light switching": true }, { "id":"Lampu002", "type":"animation", "frames":[{"bmp": "Lampu 2.png"}], "light": true, "light switching": true }, { "id": "$HuResTp1", "type": "residential", "author": "lalulali", "width": 1, "height": 1, "frames": [{"bmp": "Human Res 1.png"}], "animation": [{"id":"Lampu001", "x": 20, "y": -2}, {"id":"Lampu001", "x": 20, "y": -6}, {"id":"Lampu001", "x": 20, "y": -10}, {"id":"Lampu002", "x": 7, "y": -4}], "level": 1, "people": 6, "title": "Human Residence", "text": "Human Residence Type 1 For Poor People", "price": 10, "bulldoze price": 15, "build time": 5 } ]
JSON checker
Re: Night Animations
finally, i can sleep now, for 2 days straight i think about it and now it solved, thanks
- JohnSallow
- Townsman
- Posts: 64
- Joined: 29 Jan 2020, 18:45
- Location: Buenos Aires, Argentina
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Night Animations
Can I make a rotation-awared building have a single animation array?
E.g.:
E.g.:
Code: Select all
[
{
"id":"$nightanim_test",
"type":"animation",
"frames":[{"bmp":"test.png","w":32,"count":4}],
"light":true,
"light switching":true
},
{
. . .
"rotation aware":true,
"animation":[{"id":"$nightanim_test"}],
. . .
}
]
- A dutch Guy
- Inhabitant of a Megacity
- Posts: 175
- Joined: 26 Dec 2017, 14:41
- Location: The Netherlands
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Night Animations
Is it possible to set night animations for each frame of a building? I wanted to add night animations to a building with a left and right facing variant with rotation awareness.
- Bearbear76
- Former Bearbear65
- Posts: 5730
- Joined: 10 Feb 2017, 14:53
- Location: L2 cache
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Night Animations
I'm not an expert but try adding this in the night animation.A dutch Guy wrote: ↑12 Apr 2021, 10:25Is it possible to set night animations for each frame of a building? I wanted to add night animations to a building with a left and right facing variant with rotation awareness.
Code: Select all
"frames":[x] // x is the frame number (starts from 0)
Re: Night Animations
How am I supposed to save plugin space by animation? I don’t know how to do this. Tell me how. Thanks.
- CommanderABab
- AB
- Posts: 11240
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Night Animations
You may study this plugin.
viewtopic.php?p=21614#p21614
It draws a base from one png, then multiple static floors with an elevator animation on each level from two other pngs, then a roof from a fourth png.
viewtopic.php?p=21614#p21614
It draws a base from one png, then multiple static floors with an elevator animation on each level from two other pngs, then a roof from a fourth png.
- Sharizal zul
- Small-town resident
- Posts: 39
- Joined: 17 Jun 2021, 17:33
- Plugins: Showcase Store
- Version: Beta
Re: Night Animations
How to get the night picture that already I edited.