help
Moderator: Plugin Moderators
- World_uate
- Small-town resident
- Reactions:
- Posts: 33
- Joined: 31 May 2023, 07:32
help
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
- ur_sc4_guy
- Metropolitan
- Reactions:
- Posts: 135
- Joined: 16 Jun 2022, 20:01
- Location: Any ambanivohitra any e, Madagascar
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: help
can you show me the code?World_uate wrote: ↑20 Jul 2023, 19:32IN 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
- World_uate
- Small-town resident
- Reactions:
- Posts: 33
- Joined: 31 May 2023, 07:32
Re: help
Some SC4 Fan wrote: ↑21 Jul 2023, 14:26can you show me the code?World_uate wrote: ↑20 Jul 2023, 19:32IN 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
- ur_sc4_guy
- Metropolitan
- Reactions:
- Posts: 135
- Joined: 16 Jun 2022, 20:01
- Location: Any ambanivohitra any e, Madagascar
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: help
@World_uate
You must define the night animation before defining the building.
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":"$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}]
}
]