Page 1 of 1

Problem with handle x and y

Posted: 21 Jul 2018, 13:26
by sairam
I have some problem on handle x and y. Please help.
Ateiy_18-07-21_16.35.18.png
Ateiy_18-07-21_16.35.11.png
Ateiy_18-07-21_16.35.04.png

Re: Problem with handle x and y

Posted: 21 Jul 2018, 15:27
by CommanderABab
Need to see the code too.

Re: Problem with handle x and y

Posted: 22 Jul 2018, 10:25
by sairam

Code: Select all

[
  {
    "id":"$shipcontainer01",
    "type":"ship",
    "length":2,
    "frames":[
      {"bmp":"ship1.png","count":"4","w":45,"h":29},
	  {"bmp":"ship2.png","count":"4","w":45,"h":29},
	  {"bmp":"ship3.png","count":"4","w":45,"h":29}
    ]
  }
] 

Re: Problem with handle x and y

Posted: 29 Jul 2018, 07:26
by sairam
Please help!

Re: Problem with handle x and y

Posted: 29 Jul 2018, 09:44
by CommanderABab
Well obviously, you have "w" wrong somewhere.

Re: Problem with handle x and y

Posted: 29 Jul 2018, 10:15
by sairam
If there is problem. Please! change the "w" and "h", and also the "handle y" and "handle x".

Re: Problem with handle x and y

Posted: 29 Jul 2018, 10:24
by CommanderABab
How wide is ship1.png and what does it look like?

"handle y" should probably be 4 or 8.

I can't tell you about w and h without seeing the .png files. :)

Re: Problem with handle x and y

Posted: 29 Jul 2018, 10:46
by sairam
Here it is!
file_1.png
file_1.png (6.62 KiB) Viewed 2640 times
file.png
file.png (6.57 KiB) Viewed 2640 times
file_2.png
file_2.png (6.63 KiB) Viewed 2638 times

Re: Problem with handle x and y

Posted: 29 Jul 2018, 11:14
by Lobby
You can use the rectangular selection tool of a graphics program to read position and size of a selected rectangle.

In this specific case you might just omit the values from content_ship.json as your graphics seem to be similar.

Re: Problem with handle x and y

Posted: 29 Jul 2018, 11:31
by sairam
I don't know! Please help!

Re: Problem with handle x and y

Posted: 29 Jul 2018, 14:57
by CommanderABab
Show
should be 42 pixels wide
shipex.png
shipex.png (6.66 KiB) Viewed 2623 times

with no spaces between ships.

Re: Problem with handle x and y

Posted: 29 Jul 2018, 15:38
by sairam
I can't understand!

Re: Problem with handle x and y

Posted: 06 Aug 2018, 16:12
by sairam
Please help.

Re: Problem with handle x and y

Posted: 11 Aug 2018, 04:20
by sairam
The pngs are of theo and lobby only not mine.