Light animations
Posted: 12 Aug 2019, 05:59
To include light within your plugins:
Usewithin an animation and use that animation as the plugin image. Note the frames is left null in the plugin itself and draw ground is used.
Use:
or omit the light switching line because the default is true if light is used.
If light switching is true, the park will only be visible at night with the day night cycle plugin from the plugin store built on the map. With both lines omitted, the park would always be visible, but darken at night.
The code should work if you include the image in the test folder within your plugins folder.
Use
Code: Select all
"light":true
Code: Select all
[{
"id":"$testlightanim",
"type":"animation",
"light":true,
"light switching":false,
"frames": [{"bmp":"unsettlingi.png","handle y":8}]
},
"id":"$testxlight",
"title": "test",
"text": "test",
"build time": 3,
"price": 0,
"removable": true,
"needs road": false,
"needs land":false,
"draw ground": true,
"max count":96,
"type": "park",
"frames":[],
"animation":[{"id":"$testlightanim"}],
"slope aware":true,
"influence park":10,
"width": 1,
"height": 1,
"fun":[
{"condition":{"type":"and","inner":[{"type":"buildable","id":"$testxlight","x":-1,"y":-1}, {"type":"days built","min":3,"max":4},{"type":"building count","id":"$testxlight","min":0,"max":50},{"type":"rect","x":-6,"y":-6,"w":13,"h":13,"min":1,"max":169,"inner":[{"type":"road","level":0}]}]},
"actions":[{"type":"build","id":"$testxlight","x":-1,"y":-1}],"p":100, "ignore sucess":true }]
]
Code: Select all
"light":true,
"light switching":true
If light switching is true, the park will only be visible at night with the day night cycle plugin from the plugin store built on the map. With both lines omitted, the park would always be visible, but darken at night.
The code should work if you include the image in the test folder within your plugins folder.