Night Animations

Learn here how to create and use plugins.

Moderator: Plugin Moderators

User avatar
Marvel
Townsman
Reactions:
Posts: 96
Joined: 29 Nov 2020, 08:47
Location: Indonesia
Plugins: Showcase Store
Version: Beta

Re: Night Animations

#41

Post by Marvel »

How to make own animation
User avatar
SenyaBell
Bell
Reactions:
Posts: 867
Joined: 02 Oct 2020, 11:18
Location: Saratov
Plugins: Showcase Store
Version: Beta
Contact:

Plugin Creator

Platform

Re: Night Animations

#42

Post by SenyaBell »

Marvel wrote: 03 Dec 2020, 11:20 How to make own animation
viewtopic.php?f=41&t=7455
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#43

Post by Imran M »

What does "light switching" do?
User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#44

Post 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.
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#45

Post 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!
User avatar
Imran M
Inhabitant of a Country
Reactions:
Posts: 844
Joined: 24 Oct 2018, 13:41
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#46

Post 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 9832 times
User avatar
Lalulali
Settler
Reactions:
Posts: 5
Joined: 28 Dec 2020, 09:07

Platform

Re: Night Animations

#47

Post 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
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#48

Post 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.
User avatar
Lalulali
Settler
Reactions:
Posts: 5
Joined: 28 Dec 2020, 09:07

Platform

Re: Night Animations

#49

Post by Lalulali »

finally, i can sleep now, for 2 days straight i think about it and now it solved, thanks
User avatar
ajimaul
Villager
Reactions:
Posts: 24
Joined: 27 Jan 2021, 15:28
Location: Indonesis
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#50

Post 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
User avatar
JohnSallow
Townsman
Reactions:
Posts: 64
Joined: 29 Jan 2020, 18:45
Location: Buenos Aires, Argentina
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#51

Post 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"}],
. . .
}
]
User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#52

Post by Kulche »

Yes, that animation will be applied to all frames.
User avatar
ajimaul
Villager
Reactions:
Posts: 24
Joined: 27 Jan 2021, 15:28
Location: Indonesis
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#53

Post 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
User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#54

Post by Kulche »

That's just a normal animation. It's a part of a building cut out.
User avatar
ajimaul
Villager
Reactions:
Posts: 24
Joined: 27 Jan 2021, 15:28
Location: Indonesis
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#55

Post 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...
User avatar
A dutch Guy
Inhabitant of a Megacity
Reactions:
Posts: 174
Joined: 26 Dec 2017, 14:41
Location: The Netherlands
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#56

Post 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.
User avatar
Bearbear76
Former Bearbear65
Reactions:
Posts: 5730
Joined: 10 Feb 2017, 14:53
Location: L2 cache
Plugins: Showcase Store

Plugin Creator

Platform

Re: Night Animations

#57

Post 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)
User avatar
Kulche
Pluche
Reactions:
Posts: 1141
Joined: 07 Jun 2017, 20:28
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#58

Post 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.
User avatar
Designer Anthony
Reactions:

Re: Night Animations

#59

Post 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.
User avatar
CommanderABab
AB
Reactions:
Posts: 11086
Joined: 07 Jun 2016, 21:12
Plugins: Showcase Store
Version: Beta

Plugin Creator

Platform

Re: Night Animations

#60

Post 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.
Post Reply Previous topicNext topic

Return to “Tutorials and Documentation”