





Moderators: Scenario Moderators, Plugin Moderators
can you show me the code?World_uate wrote: ↑20 Jul 2023, 19:32 IN SHORT, WHEN I CREATED MY NIGHT ANIMATION, AND MADE A SMALL json CODE FOR IT AND SPECIFIED THE ID, AND IN THE json CODE I SPECIFIED THE ID ANIMATION AND COORDINATES, BUT WHEN I WRITE THE SAME ID IN THE CODE FOR NIGHT ANIMATION AND FOR THE PARK CODE, I GET AN ERROR I CHANGED THE CODE, NOTHING HELPS, PLEASE HELP, THIS IS MY FIRST PLUGIN WITH NIGHT ANIMATION![]()
![]()
![]()
![]()
![]()
![]()
Some SC4 Fan wrote: ↑21 Jul 2023, 14:26can you show me the code?World_uate wrote: ↑20 Jul 2023, 19:32 IN SHORT, WHEN I CREATED MY NIGHT ANIMATION, AND MADE A SMALL json CODE FOR IT AND SPECIFIED THE ID, AND IN THE json CODE I SPECIFIED THE ID ANIMATION AND COORDINATES, BUT WHEN I WRITE THE SAME ID IN THE CODE FOR NIGHT ANIMATION AND FOR THE PARK CODE, I GET AN ERROR I CHANGED THE CODE, NOTHING HELPS, PLEASE HELP, THIS IS MY FIRST PLUGIN WITH NIGHT ANIMATION![]()
![]()
![]()
![]()
![]()
![]()
Code: Select all
[
{
"id":"$pcw_parkWorlduate00",
"type":"park",
"author":"Plugin creator website 3.0 & World_uate",
"width":6,
"height":6,
"frames":[{"bmp":"AMRET.png"}],
"title":"Forest Park",
"text":"This park is like a little forest.",
"price":30000,
"monthly price":20,
"influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}]
},
{
"id":"Purt",
"type":"animation",
"light":true,
"light switching":true,
"frames":[{"bmp":"moydwani.png","handle y":8}]
}
]
Code: Select all
[
{
"id":"Purt",
"type":"animation",
"light":true,
"light switching":true,
"frames":[{"bmp":"moydwani.png","handle y":8}]
},
{
"id":"$pcw_parkWorlduate00",
"type":"park",
"author":"Plugin creator website 3.0 & World_uate",
"width":6,
"height":6,
"frames":[{"bmp":"AMRET.png"}],
"title":"Forest Park",
"text":"This park is like a little forest.",
"price":30000,
"monthly price":20,
"influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}]
}
]
Can you help me about handle X handle Y. Give me a frame and how to workur_sc4_guy wrote: ↑21 Jul 2023, 17:23 @World_uateYou must define the night animation before defining the building.Code: Select all
[ { "id":"$pcw_parkWorlduate00", "type":"park", "author":"Plugin creator website 3.0 & World_uate", "width":6, "height":6, "frames":[{"bmp":"AMRET.png"}], "title":"Forest Park", "text":"This park is like a little forest.", "price":30000, "monthly price":20, "influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}] }, { "id":"Purt", "type":"animation", "light":true, "light switching":true, "frames":[{"bmp":"moydwani.png","handle y":8}] } ]
What I mean? the night animation didn't existed the moment you declared it as a the building's night animation.
define all of the animations that a building needs before creating a building.
so, that would be the fixed code:Code: Select all
[ { "id":"Purt", "type":"animation", "light":true, "light switching":true, "frames":[{"bmp":"moydwani.png","handle y":8}] }, { "id":"$pcw_parkWorlduate00", "type":"park", "author":"Plugin creator website 3.0 & World_uate", "width":6, "height":6, "frames":[{"bmp":"AMRET.png"}], "title":"Forest Park", "text":"This park is like a little forest.", "price":30000, "monthly price":20, "influence park":150,"animation":[{"id":"Purt","x":0,"y":-94}] } ]