| Mirage Source http://miragesource.net/forums/ |
|
| Ok i've got a bug with paperdoll or 32x64 http://miragesource.net/forums/viewtopic.php?f=201&t=3354 |
Page 1 of 1 |
| Author: | wackydude1234 [ Tue Feb 05, 2008 9:00 pm ] |
| Post subject: | Ok i've got a bug with paperdoll or 32x64 |
i done them both together and accidently deleted my backup DOH! Anyway i have a video to show as the example http://youtube.com/watch?v=tkA3YOIwvGc only happens when going to the top two tiles.. |
|
| Author: | Leighland [ Fri Feb 08, 2008 5:24 am ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
Omg I was just going to post this lol. Mine is doing the exact same thing ... ![]() ![]() ![]() I'm assuming it has something to do with the blt'ing of the head/helmet. I'm looking in to fixing it right now. If i fix it I'll post it. |
|
| Author: | Lea [ Fri Feb 08, 2008 10:19 am ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
Make it so the head can go to negative coordinates? |
|
| Author: | Robin [ Fri Feb 08, 2008 12:37 pm ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
Nothing can be blted with negative co-ordinates Dave. You'll need something like what is used in BltPlayer and BltPlayerTop If y < 0 then move the src rec.top down so it appears to be moving off the map. end if |
|
| Author: | Lea [ Fri Feb 08, 2008 12:47 pm ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
uugh... I think you can blit negative. That's what the clipper is for. |
|
| Author: | Robin [ Fri Feb 08, 2008 12:50 pm ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
Try it. It'll either disappear, or just not go past 0 or the max. |
|
| Author: | Lea [ Fri Feb 08, 2008 6:23 pm ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
HMM whatever, too lazy |
|
| Author: | Zalos [ Sat Feb 09, 2008 9:12 pm ] |
| Post subject: | Re: Ok i've got a bug with paperdoll or 32x64 |
I actually fixed this it deals with the blting part I just switch its around so the top half was blting from pix_x and the bottom half was pic_x + 32 or something like that I will show an example when I get home but I dont use mse... If i remember correct its backwards in the code so the bottom is pic_x and the top is Pic_x * 2 which if you sprite is 1 your bottom half is bltting correctly but the top half is blting the head under it EDIT: i just looked up the tut and its .Top = GetPlayerSprite(Index) * PIC_Y + PIC_Y so if your sprite is 1 your legs are blting from 32 - 63 and your head from 64 - 95 if you switch it aroung your head would blt from 32 - 63 and legs from 64 - 95... so if you set sprite 0 your sprite would be blting correctly being since 0 - 31 count as 32 pixels. |
|
| Page 1 of 1 | All times are UTC |
| Powered by phpBB® Forum Software © phpBB Group https://www.phpbb.com/ |
|