Night Animations
Moderator: Plugin Moderators
- Marvel
- Villager
- Reactions:
- Posts: 19
- Joined: Sun Nov 29, 2020 8:47
- Location: Indonesia
- Plugins: Show
Re: Night Animations
How to make own animation
I am indonesia i like theotown and spaceflight simulator
Re: Night Animations
What does "light switching" do?
I just love the DOPE-amine you get after completing a plugin!
Re: Night Animations
I wrote: ...which will make it appear at night only.
I'm not lazy, I'm motivated to do nothing!
...
...
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
- Reactions:
- Posts: 9362
- Joined: Tue Jun 07, 2016 21:12
- Plugins: Show
- Version: Beta
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
- ajimaul
- Villager
- Reactions:
- Posts: 19
- Joined: Wed Jan 27, 2021 15:28
- Location: Indonesis
- Plugins: Show
- JohnSallow
- Townsman
- Reactions:
- Posts: 63
- Joined: Wed Jan 29, 2020 18:45
- Location: Buenos Aires, Argentina
- Plugins: Show
- Version: Beta
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"}],
. . .
}
]
Am I the only one who likes putting pineapple on pizza?
Re: Night Animations
Yes, that animation will be applied to all frames.
I'm not lazy, I'm motivated to do nothing!
...
...
- ajimaul
- Villager
- Reactions:
- Posts: 19
- Joined: Wed Jan 27, 2021 15:28
- Location: Indonesis
- Plugins: Show
Re: Night Animations
please ... can you tell me what is the color code for transparency at night like this



Re: Night Animations
That's just a normal animation. It's a part of a building cut out.
I'm not lazy, I'm motivated to do nothing!
...
...
- A dutch Guy
- Inhabitant of a Megacity
- Reactions:
- Posts: 164
- Joined: Tue Dec 26, 2017 14:41
- Location: Enschede, The Netherlands
- Plugins: Show
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
- Reactions:
- Posts: 5367
- Joined: Fri Feb 10, 2017 14:53
- Plugins: Show
- Version: Beta
Re: Night Animations
I'm not an expert but try adding this in the night animation.A dutch Guy wrote: ↑Mon Apr 12, 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)
Just my opinion
I'm probably recompiling my kernel... :o
I'm probably recompiling my kernel... :o
Re: Night Animations
Might work, but I would recommend adding eg. "frame": 0 in your animation objects. This way, the animation will be applied to first frame only.
I'm not lazy, I'm motivated to do nothing!
...
...