Re: Night Animations
Posted: 03 Dec 2020, 11:20
How to make own animation
A feature rich city builder game for Android, iOS and PC
https://www.forum.theotown.com/
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 } ]
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 } ]
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"}],
. . .
}
]
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)