Night Animations
-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Night Animations
What does "light switching" do?
I just love the DOPE-amine you get after completing a plugin!
-
Kulche
- Inhabitant of a Continent
- Reactions:
- Posts: 1194
- Joined: 07 Jun 2017, 18:28
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
-
Imran M
- Inhabitant of a Country
- Reactions:
- Posts: 832
- Joined: 24 Oct 2018, 11:41
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Night Animations
You do not have the required permissions to view the files attached to this post.
I just love the DOPE-amine you get after completing a plugin!
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: 11263
- Joined: 07 Jun 2016, 19: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
my avatar:
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: 24
- Joined: 27 Jan 2021, 13:28
- Location: Indonesis
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Night Animations
Hahahaha jangan kebanyakan ngopi biar bisa tidur broLalulali wrote: 07 Mar 2021, 12:40 finally, i can sleep now, for 2 days straight i think about it and now it solved, thanks
-
JohnSallow
- Townsman
- Reactions:
- Posts: 64
- Joined: 29 Jan 2020, 16: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"}],
. . .
}
]
As I won't be online on TheoTown anymore, you can freely use my plugins' database if you want to, they are all of them uploaded in this forum, just remember to gime me credits before 
For any doubts, don't hesitate in sending me a Discord DM: johnsallow
For any doubts, don't hesitate in sending me a Discord DM: johnsallow
-
ajimaul
- Villager
- Reactions:
- Posts: 24
- Joined: 27 Jan 2021, 13:28
- Location: Indonesis
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Night Animations
please ... can you tell me what is the color code for transparency at night like this
You do not have the required permissions to view the files attached to this post.
-
ajimaul
- Villager
- Reactions:
- Posts: 24
- Joined: 27 Jan 2021, 13:28
- Location: Indonesis
- Plugins: Showcase Store
-
Plugin Creator
Platform
-
A dutch Guy
- Inhabitant of a Megacity
- Reactions:
- Posts: 174
- Joined: 26 Dec 2017, 12: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
- Inhabitant of a Multiverse
- Reactions:
- Posts: 5701
- Joined: 10 Feb 2017, 12: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, 08:25 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.
Code: Select all
"frames":[x] // x is the frame number (starts from 0)
Just my opinion
retired
retired
-
Kulche
- Inhabitant of a Continent
- Reactions:
- Posts: 1194
- Joined: 07 Jun 2017, 18:28
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
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.
get yoked!!
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
- Reactions:
- Posts: 11263
- Joined: 07 Jun 2016, 19: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.
my avatar:
-
Sharizal zul
- Small-town resident
- Reactions:
- Posts: 28
- Joined: 17 Jun 2021, 15:33
- Plugins: Showcase Store
- Version: Beta
Re: Night Animations
How to get the night picture that already I edited.
