Re: Cars
Posted: 08 Nov 2020, 08:48
That car is playing GTA IV but the pedestrians are wiser NOT to walk
A feature rich city builder game for Android, iOS and PC
https://www.forum.theotown.com/
Ye, actually.. the truck went for its safety.Zman The Man wrote: ↑08 Nov 2020, 08:48That car is playing GTA IV but the pedestrians are wiser NOT to walk
What is the fifth frame of green car represent?CommanderABab wrote: ↑08 Nov 2020, 15:01More disturbing is that you are overriding the default fire truck which fights fires and giving it only the ability to act as an ambulance.
Code: Select all Reset
"frames":[{"bmp":"JBPM_Scania.png","count":4,"h":22,"w":23}], "id":"$carfirebrigade00", "meta":{"tags":{"medic":{},"swat"{}}}, "speed":1.1, "type":"car", "v2":[-2,-2,-2,-2], "override":true
Wait... what?
Code: Select all Reset
[{ "id":"$carfirebrigade00", "type":"car", "frames":[ {"x":512,"y":657,"w":32,"h":18,"count":4},{"x": 128,"y": 365,"w": 32,"h": 19,"count": 4,"offset y": 3072} // This array has 8 frames ], "frames per variant": 8, // We let the game know that we use 8 frames per variant, otherwise it would treat 8 frames as 2 separate variants "animation":[ { "id":"$animationcaralertlights00", "pos":[16,-10, 10,-4, -4,-9, 4,-13], "important":true }, { "id":"$animationcaralertlights00", "pos":[18,-9, 12,-5, -2,-8, 6,-14], "important":true }, { "id": "carlight_red", "pos": [11, 4, 0, 0, 0, 0, 25, 1], "frames": [0, 3] }, { "id": "carlight_red", "pos": [13, 5, 0, 0, 0, 0, 27, 0], "frames": [0, 3] }, { "id": "carlight_yellow", "pos": [0, 0, 19, 5, 3, 0, 0, 0], "frames": [1, 2] }, { "id": "carlight_yellow", "pos": [0, 0, 21, 4, 5, 1, 0, 0], "frames": [1, 2] } ], "flag military":true, "flag airport":true, "flag emergency": true, "chargeable": false, "meta":{"tags":{"fire brigade":{}}} }]
Should the frame is same size as non diagonal cars one?
Please read the tutorial.
Diagonal cars have 8 frames, so you would add animations to each of them, so probably yes.
I have done some tests and it indeed does not work, but with the update coming, it's now a requirement imo, and I cant afford the time to modify all my trains texture.
Code: Select all Reset
[ { "id": "$Themax_TrainNight_Real_33_Innovia_200_LasVegas_End", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "Themax_TrainNight_Real_33_Innovia_200_LasVegas_End.png", "count": 4, "h": 19, "w": 21 } ], "rotation aware": true }, { "author": "Themax", "flag normal": false, "flag train": false, "flag monorail": true, "frames": [ { "bmp": "Themax_Train_Real_33_Innovia_200_LasVegas_End.png", "count": 4, "h": 19, "w": 21 } ], "id": "$Themax_Train_Real_33_Innovia_200_LasVegas_End", "animation": [{"id": "$Themax_TrainNight_Real_33_Innovia_200_LasVegas_End", "x":0,"y":-11}], "speed": 2.5, "type": "car", "v2": true } ]
Code: Select all Reset
[ { "id": "$Themax_CarNight_Real_1_Cadillac_CT6", "type": "animation", "light": true, "light switching": true, "frames": [ { "bmp": "Themax_CarNight_Real_1_Cadillac_CT6.png", "count": 8, "h": 10, "w": 15 } ], "rotation aware": true }, { "author": "Themax", "flag pkw": true, "flag normal": false, "frames": [ { "bmp": "Themax_Car_Real_1_Cadillac_CT6.png", "count": 8, "h": 10, "w": 15 } ], "id": "$Themax_Car_Real_1_Cadillac_CT6", "animation": [{"id": "$Themax_CarNight_Real_1_Cadillac_CT6", "x":0,"y":-2}], "speed": 2.5, "frames per variant": 8, "type": "car", "v2": true } ]
I Agree.THEMAX wrote: ↑18 Nov 2021, 21:39So essentially, I would like to be able to do this :
Themax_Train_Real_33_Bombardier_Innovia_200_LasVegas_End.pngThemax_TrainNight_Real_33_Bombardier_Innovia_200_LasVegas_End.png
This would truly be of great help and reduce the workload BY A LOT also allowing me to update the railroad expansion plugin faster.