|
pivot_sprite |
ngiacomelli
Member #5,114
October 2004
|
I've never used pivot_sprite before and have run into some problems. Basically, my player sprite is broken into two sections. A top and a bottom. This is because I want the top of the body to 'tilt' slightly left or right. Fine, I thought. I'll just break the two images apart and have the top pivot across the bottom. Each bitmap is 32x32 and the body is currently represented by a stick figure O
|
^
pivot_sprite( bmp, player.body[0], x, y, 16, 32, itofix(35) ); Now, I thought that 16x32 would align the top half of the body to the middle-bottom of the image. So that the 'spine' of the stick man would align with its bottom half. But I'm not having any luck. Am I just being stupid here, or what?
|
|