Page 3 of 5

Re: Night Animations

Posted: 03 Dec 2020, 11:20
by Marvel
How to make own animation

Re: Night Animations

Posted: 03 Dec 2020, 16:47
by SenyaBell
Marvel wrote:
03 Dec 2020, 11:20
How to make own animation
viewtopic.php?f=41&t=7455

Re: Night Animations

Posted: 04 Jan 2021, 20:24
by Imran M
What does "light switching" do?

Re: Night Animations

Posted: 04 Jan 2021, 20:27
by Kulche
Imran M wrote:
04 Jan 2021, 20:24
What does "light switching" do?
I wrote: ...which will make it appear at night only.

Re: Night Animations

Posted: 04 Jan 2021, 20:54
by Imran M
Kulche wrote:
04 Jan 2021, 20:27
Imran M wrote:
04 Jan 2021, 20:24
What does "light switching" do?
I wrote: ...which will make it appear at night only.
Thanks!

Re: Night Animations

Posted: 04 Jan 2021, 21:09
by Imran M
Kulche wrote:
04 Jan 2021, 20:27
Imran M wrote:
04 Jan 2021, 20:24
What does "light switching" do?
I wrote: ...which will make it appear at night only.
me.png
me.png (116.54 KiB) Viewed 10378 times

Re: Night Animations

Posted: 07 Mar 2021, 12:40
by Lalulali
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
Check

Re: Night Animations

Posted: 07 Mar 2021, 13:04
by CommanderABab

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
Check
You forgot [] around the "animation": ids in $HuResTp1.

Re: Night Animations

Posted: 07 Mar 2021, 14:40
by Lalulali
finally, i can sleep now, for 2 days straight i think about it and now it solved, thanks

Re: Night Animations

Posted: 07 Mar 2021, 18:08
by ajimaul
Lalulali wrote:
07 Mar 2021, 14:40
finally, i can sleep now, for 2 days straight i think about it and now it solved, thanks
Hahahaha jangan kebanyakan ngopi biar bisa tidur bro :space

Re: Night Animations

Posted: 13 Mar 2021, 04:50
by JohnSallow
Can I make a rotation-awared building have a single animation array?
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"}],
. . .
}
]

Re: Night Animations

Posted: 13 Mar 2021, 08:54
by Kulche
Yes, that animation will be applied to all frames.

Re: Night Animations

Posted: 22 Mar 2021, 12:10
by ajimaul
please ... can you tell me what is the color code for transparency at night like this
Evaod_21-03-22_17.07.32.png

Re: Night Animations

Posted: 22 Mar 2021, 12:21
by Kulche
That's just a normal animation. It's a part of a building cut out.

Re: Night Animations

Posted: 23 Mar 2021, 16:01
by ajimaul
Kulche wrote:
22 Mar 2021, 12:21
That's just a normal animation. It's a part of a building cut out.
ahh tanks for your info sir...

Re: Night Animations

Posted: 12 Apr 2021, 10:25
by A dutch Guy
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.

Re: Night Animations

Posted: 12 Apr 2021, 11:06
by Bearbear76
A dutch Guy wrote:
12 Apr 2021, 10: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.
I'm not an expert but try adding this in the night animation.

Code: Select all

"frames":[x] // x is the frame number (starts from 0)

Re: Night Animations

Posted: 12 Apr 2021, 12:11
by Kulche
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.

Re: Night Animations

Posted: 29 Apr 2021, 16:44
by Designer Anthony
How am I supposed to save plugin space by animation? I don’t know how to do this. Tell me how. Thanks.

Re: Night Animations

Posted: 29 Apr 2021, 18:02
by CommanderABab
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.