Page 1 of 1

Problem with night animation

Posted: 16 Aug 2024, 01:29
by Dima Rted
(Everything is translated through a translator, there may be errors in the text)I have been unable to make a night animation for a small house for 3 hours now. I wrote the code myself, looked at people's code, and even gave it to AI. Can someone help me with the code, I just don't understand it at all, but I really want to make a night animation. Here is my problematic code:
[
{
"id": "$temno",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "svethouse69.png",
"count": 1
}
],
"rotation aware": false
},
{
"id": "$DimaRtedAbobys",
"type": "residential",
"level": 1,
"author": "Dima Rted",
"width": 2,
"height": 2,
"frames": [
{
"bmp": "house69.png",
"count": 1
}
],
"animations": [
{
"id": "$temno",
"x": 0,
"y": 0
}
]
}
]

Re: Problem with night animation

Posted: 16 Aug 2024, 10:44
by FVI
Dima Rted wrote:
16 Aug 2024, 01:29
Quote
Does it show any error when loading the game or is it the night animation just not showing up?

Anyway I'm not really a code expert (that's why I didn't find anything strange in your code) but I tried to adapt this code I made to yours.
Show
Test

Code: Select all    Reset

XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
JSON checker

Output: Select all

...
Hope it works!

Re: Problem with night animation

Posted: 16 Aug 2024, 11:40
by dnswodn
Dima Rted wrote:
16 Aug 2024, 01:29
(Everything is translated through a translator, there may be errors in the text)I have been unable to make a night animation for a small house for 3 hours now. I wrote the code myself, looked at people's code, and even gave it to AI. Can someone help me with the code, I just don't understand it at all, but I really want to make a night animation. Here is my problematic code:
[
{
"id": "$temno",
"type": "animation",
"light": true,
"light switching": true,
"frames": [
{
"bmp": "svethouse69.png",
"count": 1
}
],
"rotation aware": false
},
{
"id": "$DimaRtedAbobys",
"type": "residential",
"level": 1,
"author": "Dima Rted",
"width": 2,
"height": 2,
"frames": [
{
"bmp": "house69.png",
"count": 1
}
],
"animations": [
{
"id": "$temno",
"x": 0,
"y": 0
}
]
}
]
"animations" should be "animation", no s.

Re: Problem with night animation

Posted: 24 Aug 2024, 12:52
by stepa12345
Он у тебя заработал после того как ты убрал "s" в "animations" или нет?
Did it work for you after you removed the "s" in "animations" or not?