Adding custom animations for residential and commercial.
Moderator: Plugin Moderators
- Player_no_Zero
- Metropolitan
- Reactions:
- Posts: 140
- Joined: 06 May 2019, 09:18
- Location: Somewhere in Manila, Philippines
- Plugins: Showcase Store
-
Plugin Creator
Platform
Adding custom animations for residential and commercial.
Before I begin I must give you the context of this whole thing. I asked MayorRascalov to edit his Filipino plugins in celebration of Philippine Independence day.
I actually started making it back in June last year. But I unfortunately stopped because I am highschooler, all of my progress in my phone are all scrap and because of too much space. Now I have a laptop and nothing to do with quarantine I'm on full production mode. I learn new things and understand them. Quite a bit.
Now I have a problem need to address. I learn about custom animations but when I do it, it just doesn't work.
I really want to add custom animations so I can proceed to other stuff.
Can anybody fix my problem. The deadline is comin
There's more to add but I need to address this first.
Also how exactly you use the coordinates.
When I tried to compare other plugins json I found out that some coordinates are misaligned.
I actually started making it back in June last year. But I unfortunately stopped because I am highschooler, all of my progress in my phone are all scrap and because of too much space. Now I have a laptop and nothing to do with quarantine I'm on full production mode. I learn new things and understand them. Quite a bit.
Now I have a problem need to address. I learn about custom animations but when I do it, it just doesn't work.
I really want to add custom animations so I can proceed to other stuff.
Can anybody fix my problem. The deadline is comin
There's more to add but I need to address this first.
Also how exactly you use the coordinates.
When I tried to compare other plugins json I found out that some coordinates are misaligned.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
For your idflag1.json to work as written, all the flags in phflag1.png need to be in a horizontal single row.
- Player_no_Zero
- Metropolitan
- Reactions:
- Posts: 140
- Joined: 06 May 2019, 09:18
- Location: Somewhere in Manila, Philippines
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
so everything was right except for the animation png?CommanderABab wrote: ↑17 Apr 2020, 21:04For your idflag1.json to work as written, all the flags in phflag1.png need to be in a horizontal single row.
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
Code: Select all
[
{
"id":"$IModernized_Filipino_Building_1A",
"type":"residential",
"habitants":60,
"level":2,
"author":"MayorRascalov & Player",
"width":2,
"height":2,
"frames":[{"bmp":"IDMFH1A.png"}],
"animation":[{"id":"$idphflag","x":12,"y":-34},
{"id":"$idphflag","x":24,"y":-40},
{"id":"$idphflag","x":39,"y":-40},
{"id":"$idphflag","x":51,"y":-34}]
}
]
- Player_no_Zero
- Metropolitan
- Reactions:
- Posts: 140
- Joined: 06 May 2019, 09:18
- Location: Somewhere in Manila, Philippines
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
it's misaligned. how to use the coordinates exactly.CommanderABab wrote: ↑18 Apr 2020, 05:00Would be how the code should look.Code: Select all
[ { "id":"$IModernized_Filipino_Building_1A", "type":"residential", "habitants":60, "level":2, "author":"MayorRascalov & Player", "width":2, "height":2, "frames":[{"bmp":"IDMFH1A.png"}], "animation":[{"id":"$idphflag","x":12,"y":-34}, {"id":"$idphflag","x":24,"y":-40}, {"id":"$idphflag","x":39,"y":-40}, {"id":"$idphflag","x":51,"y":-34}] } ]
- CommanderABab
- AB
- Reactions:
- Posts: 11107
- Joined: 07 Jun 2016, 21:12
- Plugins: Showcase Store
- Version: Beta
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
So, try:Player_no_Zero wrote: ↑18 Apr 2020, 06:14Screenshot_20200418_120353.pngCommanderABab wrote: ↑18 Apr 2020, 05:00Would be how the code should look.Code: Select all
[ { "id":"$IModernized_Filipino_Building_1A", "type":"residential", "habitants":60, "level":2, "author":"MayorRascalov & Player", "width":2, "height":2, "frames":[{"bmp":"IDMFH1A.png"}], "animation":[{"id":"$idphflag","x":12,"y":-34}, {"id":"$idphflag","x":24,"y":-40}, {"id":"$idphflag","x":39,"y":-40}, {"id":"$idphflag","x":51,"y":-34}] } ]
it's misaligned. how to use the coordinates exactly.
Code: Select all
[
{
"id":"$IModernized_Filipino_Building_1A",
"type":"residential",
"habitants":60,
"level":2,
"author":"MayorRascalov & Player",
"width":2,
"height":2,
"frames":[{"bmp":"IDMFH1A.png"}],
"animation":[{"id":"$idphflag","x":12,"y":-14},
{"id":"$idphflag","x":24,"y":-7},
{"id":"$idphflag","x":39,"y":-7},
{"id":"$idphflag","x":51,"y":-14}]
}
]
- Player_no_Zero
- Metropolitan
- Reactions:
- Posts: 140
- Joined: 06 May 2019, 09:18
- Location: Somewhere in Manila, Philippines
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
I actually found out.
DO NOT USE THE COORDINATES IN YOUR PIXEL EDITING APPLICATION NOR ANY PAINT SOFTWARE.
YOU HAVE TO FIND OUT YOURSELF.
the correct coordinates are (from left to right)
x:12 y:-17
x:24 y:-11
x:39 y:-11
x:51 y:-17
to find out the coordinates you must know the point of reference. to find the coordinates you must COUNT MANUALLY That pink pixel will be my target point to put my animation.
With the knowledge in my animation .png I can proceed to pin down the coordinates and here how I find out. I don't know if you notice that X coordinate didn't change and the problem was on Y coordinate.
The Y coordinates is the one that differs. You might confuse as I am. You can still use the X and the Y, count manually
So YOU HAVE TO FIND OUT YOURSELF.
the correct coordinates are (from left to right)
x:12 y:-17
x:24 y:-11
x:39 y:-11
x:51 y:-17
to find out the coordinates you must know the point of reference. to find the coordinates you must COUNT MANUALLY That pink pixel will be my target point to put my animation.
With the knowledge in my animation .png I can proceed to pin down the coordinates and here how I find out. I don't know if you notice that X coordinate didn't change and the problem was on Y coordinate.
The Y coordinates is the one that differs. You might confuse as I am. You can still use the X and the Y, count manually
Last edited by Player_no_Zero on 18 Apr 2020, 14:54, edited 1 time in total.
- Player_no_Zero
- Metropolitan
- Reactions:
- Posts: 140
- Joined: 06 May 2019, 09:18
- Location: Somewhere in Manila, Philippines
- Plugins: Showcase Store
-
Plugin Creator
Platform
Re: Adding custom animations for residential and commercial.
don't worry now i found outCommanderABab wrote: ↑18 Apr 2020, 12:45Screenshot_20200418-063026.jpgPlayer_no_Zero wrote: ↑18 Apr 2020, 06:14Screenshot_20200418_120353.pngCommanderABab wrote: ↑18 Apr 2020, 05:00Would be how the code should look.Code: Select all
[ { "id":"$IModernized_Filipino_Building_1A", "type":"residential", "habitants":60, "level":2, "author":"MayorRascalov & Player", "width":2, "height":2, "frames":[{"bmp":"IDMFH1A.png"}], "animation":[{"id":"$idphflag","x":12,"y":-34}, {"id":"$idphflag","x":24,"y":-40}, {"id":"$idphflag","x":39,"y":-40}, {"id":"$idphflag","x":51,"y":-34}] } ]
it's misaligned. how to use the coordinates exactly.
So, try:Code: Select all
[ { "id":"$IModernized_Filipino_Building_1A", "type":"residential", "habitants":60, "level":2, "author":"MayorRascalov & Player", "width":2, "height":2, "frames":[{"bmp":"IDMFH1A.png"}], "animation":[{"id":"$idphflag","x":12,"y":-14}, {"id":"$idphflag","x":24,"y":-7}, {"id":"$idphflag","x":39,"y":-7}, {"id":"$idphflag","x":51,"y":-14}] } ]
let this whole thing be a guide