02-02-2012, 10:04 AM
how can I measure the sprites x,y, w and h values in a easy way than to count each pixel?
x and y values in sprites
|
02-02-2012, 10:04 AM
how can I measure the sprites x,y, w and h values in a easy way than to count each pixel?
02-02-2012, 11:01 AM
I know that you can measure w and h in paint. Go to the image -> choose Image -> go to Attributes and you have the w(Width) and h(Height) but x and y don't really know.
This is an inspiration from: -YinYin's Character Development guide, to be more specific i took one of those bases. -Urban Rivals' clan Skeelz, I took their uniform I hope it's good. ^^ ____________________________________________ TLOK | My sprites | Anime sprite contest | DeviantART |
02-02-2012, 11:12 AM
MS Paint features the pixel-count at the bottom of the window. In Win 7, it's in the bottom left.
You can thus easily measure the coordinates. If it's for finding suitable wpoints, for example, you'll have to add offsets. Example: Spritesheet, each sprite is, according to the data, 79px wide and 79px tall. Add 1px to each for the line-separation (you see these green lines in template's spritesheets, they're not displayed in-game). Makes 80px each and is this fairly easy to calculate. Let's say, you want to place a weapon at the coordinates (341,127) in bandit_0.bmp. Count the number of rows and columns (not to mix with the row/col-attributes in the dat-files, I don't know why those are the other way round). At this coordinate, we are in the second row and this is the fifth image. So, you'll have to subtract the sprite-sizes that are before. Makes for x: 341 - (5*80) = 21 and for y: 127 - (1*80) = 47. So, these are your coordinates. Hope that makes things a bit clearer
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~ "Freeze, you're under vrest!" - Mark, probably. » Gallery | » Sprites | » DeviantArt
02-02-2012, 11:21 AM
(This post was last modified: 02-02-2012, 11:24 AM by Rhino.Freak.)
(02-02-2012, 11:12 AM)Blue Phoenix Wrote: MS Paint features the pixel-count at the bottom of the window. In Win 7, it's in the bottom left.okay i got this part (02-02-2012, 11:12 AM)Blue Phoenix Wrote: Let's say, you want to place a weapon at the coordinates (341,127) in bandit_0.bmp. Count the number of rows and columns (not to mix with the row/col-attributes in the dat-files, I don't know why those are the other way round). At this coordinate, we are in the second row and this is the fifth image. So, you'll have to subtract the sprite-sizes that are before. Makes for x: 341 - (5*80) = 21 and for y: 127 - (1*80) = 47. So, these are your coordinates.okay i got this part's last part but i dont know what u mean by at cordinates (341, 127) i mean where are they measured from? ? And can someone tell me how to code "what will happen when 2 specific balls hit each other"
02-02-2012, 11:55 AM
(02-02-2012, 11:21 AM)rhino.freak Wrote: okay i got this part's last part but i dont know what u mean by at cordinates (341, 127) i mean where are they measured from? ? (0,0) is the top left corner. The y-axis faces downwards, the x-axis to the left.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~ "Freeze, you're under vrest!" - Mark, probably. » Gallery | » Sprites | » DeviantArt
02-02-2012, 12:03 PM
(02-02-2012, 11:55 AM)Blue Phoenix Wrote:(02-02-2012, 11:21 AM)rhino.freak Wrote: okay i got this part's last part but i dont know what u mean by at cordinates (341, 127) i mean where are they measured from? ? but where does it start from in the game? the background corner or what?
02-02-2012, 12:20 PM
(This post was last modified: 02-02-2012, 12:22 PM by empirefantasy.)
It starts from the actual pic (the pic when is the character in that moment).Watch this tutorial for more:
Quote:And can someone tell me how to code "what will happen when 2 specific balls hit each other"The both go to their hit frames (if they are both state:3000 balls).
02-03-2012, 08:55 AM
okay i got it.. and about that hitting 2 balls i mean can we code or decide in a way that what will happen when ball A touches ball B and a special effect is formed, that dont works when ball A touches ball C..
02-03-2012, 12:18 PM
If balls came from the same team,then HEX editing is needed to release this (if you don't want to have a buggy view).
While if balls are from different teams,then it should not be that hard to code it. |
« Next Oldest | Next Newest »
|