Frame and Animation
Posted: 21 Jan 2025, 11:22
*animation.json*
[
{
"id":"cyanled_alwayson",
"type":"animation",
"light":true,
"frames":[
{
"bmp":"LED-VENEDCASTLE77.BASE.png",
"x":0, "y":0,
"w":166, "h":138, "count":1
}
]
},
{
"id":"movecyan",
// "light":true,
// "light switching":true,
"type":"animation",
"animation":[
{
"id":"cyanled_alwayson",
"x":29, "y":-321
}
]
}
]
*building.json*
"id":"xxxx",
"type":"building",
"animation":[
{ "id":"movecyan" }
]
........
I used "animation" two step go to "cyanled_alwayson"
Why must have to activate the light and lightswitch on "movecyan" huh?
When it's false value at light and light_s, it can enter but when it's about to be built, there's an error
[
{
"id":"cyanled_alwayson",
"type":"animation",
"light":true,
"frames":[
{
"bmp":"LED-VENEDCASTLE77.BASE.png",
"x":0, "y":0,
"w":166, "h":138, "count":1
}
]
},
{
"id":"movecyan",
// "light":true,
// "light switching":true,
"type":"animation",
"animation":[
{
"id":"cyanled_alwayson",
"x":29, "y":-321
}
]
}
]
*building.json*
"id":"xxxx",
"type":"building",
"animation":[
{ "id":"movecyan" }
]
........
I used "animation" two step go to "cyanled_alwayson"
Why must have to activate the light and lightswitch on "movecyan" huh?
When it's false value at light and light_s, it can enter but when it's about to be built, there's an error