Page 1 of 1

Floating fences?

Posted: 22 Aug 2024, 21:07
by FVI
Hello!

I have a problem with fences. The code is fully functioning, but for some reason, fences float like this:
Screenshot_20240822-200413.jpg
This is the code

Code: Select all    Reset

[ { "id": "$fence400", "type": "fence", "frames":[{"bmp":"Fence.png"},{"bmp":"Fenceb.png"}], "price": 1 } ]
JSON checker
Check
Fenceb.png
Fenceb.png (265 Bytes) Viewed 2171 times
Fence.png
Fence.png (259 Bytes) Viewed 2171 times
I really have no idea why this is happening, can anyone help me please? Thanks in advance!

Re: Floating fences?

Posted: 23 Aug 2024, 03:30
by dnswodn
Try adding "handle y" to your code, like this:

Code: Select all

"frames": [
  {
    "bmp": "image.png",
    "handle y": 8
  }
]
You can adjust handle y to adjust the position of the frame.

Re: Floating fences?

Posted: 23 Aug 2024, 09:05
by FVI
Thanks! Let's see if it works

Re: Floating fences?

Posted: 23 Aug 2024, 20:55
by FVI
dnswodn wrote:
23 Aug 2024, 03:30
Try adding "handle y" to your code, like this:

Code: Select all

"frames": [
  {
    "bmp": "image.png",
    "handle y": 8
  }
]
You can adjust handle y to adjust the position of the frame.
It worked! Thanks!