Re: Cars
Posted: 20 Nov 2021, 13:23
Such declaration of night animations would lead to a lot of wasted plugin space, henceforth, such feature is not available.
A feature rich city builder game for Android, iOS and PC
https://www.forum.theotown.com/
Thanks for the answer then.JustAnyone wrote: ↑20 Nov 2021, 13:23Such declaration of night animations would lead to a lot of wasted plugin space, henceforth, such feature is not available.
Code: Select all
"animation":[
{"id":"$lrtheadlights00.anim2", "pos":[0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0], "frames":[0]},
{"id":"$lrtheadlights01.anim2", "pos":[0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0], "frames":[1]},
{"id":"$lrtheadlights02.anim2", "pos":[0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0], "frames":[2]},
{"id":"$lrtheadlights03.anim2", "pos":[0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0], "frames":[3]},
//diagonal light
{"id":"$lrtheadlights00.anim2", "pos":[0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0], "frames":[4]},
{"id":"$lrtheadlights01.anim2", "pos":[0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0], "frames":[5]},
{"id":"$lrtheadlights02.anim2", "pos":[0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0], "frames":[6]},
{"id":"$lrtheadlights03.anim2", "pos":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1], "frames":[7]}
],
Code: Select all Reset
{ "id": "$tractor_trailer00", "type": "car", "frames": [{ "x": 644, "y": 709, "w": 14, "h": 11, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 8, 9, 10, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 4, 10, 13, 8, 0, 0], "frames": [1, 2] } ], "v2": [3, 1, 2, 0] //Explain this }, { "id": "$tractor00", "type": "car", "frames": [{ "x": 700, "y": 717, "w": 16, "h": 10, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 6, 12, 7, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 3, 7, 15, 6, 0, 0], "frames": [1, 2] }, { "id": "carlight_yellow", "pos": [7, 5, 0, 0, 0, 0, 6, 5], "frames": [0, 3] }, { "id": "carlight_yellow", "pos": [9, 4, 0, 0, 0, 0, 8, 6], "frames": [0, 3] } ], "speed": 0.5, "tail": ["$tractor_trailer00"], "v2": [3, 1, 1, 1], //Explain this "flag normal": false, "flag tractor": true }
Nevermind i understand it now,it only working non diagonal mode,its something like handle y for animation,but it's for cars.Kiki012 wrote: ↑30 Dec 2021, 06:37Can someone explain this for me
The V2 is bit different from othersCode: Select all Reset
{ "id": "$tractor_trailer00", "type": "car", "frames": [{ "x": 644, "y": 709, "w": 14, "h": 11, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 8, 9, 10, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 4, 10, 13, 8, 0, 0], "frames": [1, 2] } ], "v2": [3, 1, 2, 0] //Explain this }, { "id": "$tractor00", "type": "car", "frames": [{ "x": 700, "y": 717, "w": 16, "h": 10, "count": 4 }], "animation": [ { "id": "carlight_red", "pos": [0, 0, 0, 6, 12, 7, 0, 0], "frames": [1, 2] }, { "id": "carlight_red", "pos": [0, 0, 3, 7, 15, 6, 0, 0], "frames": [1, 2] }, { "id": "carlight_yellow", "pos": [7, 5, 0, 0, 0, 0, 6, 5], "frames": [0, 3] }, { "id": "carlight_yellow", "pos": [9, 4, 0, 0, 0, 0, 8, 6], "frames": [0, 3] } ], "speed": 0.5, "tail": ["$tractor_trailer00"], "v2": [3, 1, 1, 1], //Explain this "flag normal": false, "flag tractor": true }JSON checker
Code: Select all
"v2":[
0, //First Y axis of frame
0, //Second Y axis of frame
0, //Third Y axis of frame
0 //Fourth Y axis of frame
]
Let's talk about this in private message or other topics if you want to know how i do so.