Page 1 of 1
Fences
Posted: 25 May 2021, 22:36
by 1Code
Code:
Select all Reset
[
{
"id": "$fence_real00",
"type": "fence",
"frames": [
{"x": 40,"y": 352,"w": 16,"h": 16,"count": 2,"handle y":8},
{"x": 884,"y": 334,"w": 17,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024},
{"x": 901,"y": 334,"w": 18,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024},
{"x": 919,"y": 334,"w": 18,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024},
{"x": 937,"y": 334,"w": 17,"h": 24, "handle y": 16,"offset x": 2048,"offset y": 1024}
],
"price": 100,
//Fences also supports animation
"animation": [{"id":"$any_animation_id_you_choose00"}]
}
]
The flat frames:

- image.png (239 Bytes) Viewed 13471 times
The slope frames:

- image (1).png (1.42 KiB) Viewed 13471 times
Re: Fences
Posted: 17 Sep 2022, 14:01
by DaRK72
How i can insert my image in code?
Re: Fences
Posted: 17 Sep 2022, 14:24
by Naufhal
You can make your own fence image
Re: Fences
Posted: 17 Sep 2022, 14:27
by DaRK72
I already made this image, but the code just not seeing it and inserting frames of wooden fence instead of mine.
Re: Fences
Posted: 07 Oct 2022, 23:56
by nickolaas_nk7
How can I put my own image in the code?
Re: Fences
Posted: 08 Oct 2022, 00:09
by nickolaas_nk7
what is the purpose of animation?
Re: Fences
Posted: 09 Oct 2022, 22:31
by FVI
viewtopic.php?f=49&t=16894
Bearbear76 told me that this is how it is done
Re: Fences
Posted: 10 Oct 2022, 03:01
by nickolaas_nk7
it works?
Re: Fences
Posted: 10 Oct 2022, 09:01
by FVI
Maybe. I didn't tried it yet but it should work. Try

Re: Fences
Posted: 10 Oct 2022, 11:35
by Naufhal
Re: Fences
Posted: 10 Oct 2022, 18:02
by nickolaas_nk7
Thank you!!

Re: Fences
Posted: 10 Oct 2022, 19:19
by FVI
You re welcome

Re: Fences
Posted: 28 Jul 2023, 14:20
by The Blue Mask
How to make diagonal fences but the pixels just going straight. can anybody give me the template?
Re: Fences
Posted: 29 Jul 2023, 18:49
by CommanderABab
Prorifg wrote: ↑28 Jul 2023, 14:20
How to make diagonal fences but the pixels just going straight. can anybody give me the template?
No currently possible.
Re: Fences
Posted: 04 Mar 2025, 18:41
by Ross The Mayor
How would you code the fence like the seawall in-game?