Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
[solved] Need help with sprite
#1
I thougt i post it here ...
I made a charater (only a replace for bandit) with the sprite size: 191x101
Here is my code:

Code:
<frame> 9 running
   pic: 24  state: 2  wait: 3  next: 0  dvx: 0  dvy: 0  centerx: 55  centery: 101  hit_a: 0  hit_d: 0  hit_j: 0
  sound: data\003.wav
   wpoint:
      kind: 1  x: 20  y: 41  weaponact: 25  attacking: 0  cover: 0  dvx: 0  dvy: 0  dvz: 0
   wpoint_end:
   bdy:
      kind: 0  x: 25  y: 19  w: 38  h: 60
   bdy_end:
<frame_end>
But the result is this:

[Image: cyloaz2.png]

Here is the sprite sheet:

[Image: 16496133gu7.png]

I don't know how to fix it.. I already tried centerx: 54 and a few others :confused:
again a noobish question ? ^^''
Reply
Thanks given by:
#2
your centerx should be around 95, and your w/h in the bmp-part have the wrong values. w should be one less and h about 10 less.
Silverthorn / Blue Phoenix
~ Breaking LFE since 2008 ~

"Freeze, you're under vrest!" - Mark, probably.

» Gallery | » Sprites | » DeviantArt
Reply
Thanks given by:
#3
Somthing helpfully for getting right values:
Open Paint and use the selection tool and select the part from the upper left corner to the part where the shadow should appear:
[Image: samllml6.png]
(click to enlarge)

And now somewhere to values should appear. In this case "101x101"
And now use those for centerx/y. The first one is X, the other one Y
Reply
Thanks given by:
#4
Hm ... yeah thx, I fixed it

==> solved
Reply
Thanks given by:




Users browsing this thread: 1 Guest(s)