Could please someone explain me how i can find the x and y coordinate? I tried it with for example with irfanview but the coordinates at the picture are not the same as in materials.txt
for example:
(Sprite: http://abload.de/img/spritesblr38.png)
BEGIN Object
Name RawPotato
Width 1
Height 1
Toughness 1.0000
MaxStackSize 20
RenderDepth 1
Properties Material
BEGIN Sprite
x 0
y 0
w 2
h 2
RotateType 0
END
END
Why is this x/y 0/0 ? and why "w 2" / h2"
BEGIN Equipment
Name Trowel
Scale 0.800000
AttackPower 1.00000
RechargeTime 1.00000
Properties Tools
Properties Metal
BEGIN Sprite
x 8
y 0
w 2
h 2
END
and why is this x/y 8/0 ? Its so" far away" at the picture of the "raw potato". How many pixels are 1x ?
Hope someone can help me! Just want to understand why.
[QUESTION] Sprites X / Y Coordinates question!
Moderator: NBJeff
Re: Sprites X / Y Coordinates question!
the x and y coordinates refer to the position of the equipment on the custom sprites.png file. The indicate the top left corner of the sprite. The w and h tell you the height and width of the sprite, meaning how far the sprite spans in the sprites.png
Re: Sprites X / Y Coordinates question!
1x or 1y = 32 pixels.
Re: Sprites X / Y Coordinates question!
Each unit appears to represent 32 pixels. You can verify this yourself by opening the sprite image in the editor of your choice, then enable the grid and set the grid spacing/distance to 32 x 32
-
- level1
- Posts: 11
- Joined: Wed Nov 07, 2012 10:00 pm
- Location: Norge
Who is online
Users browsing this forum: No registered users and 21 guests