Mirage Source
Ok i've got a bug with paperdoll or 32x64 - Printable Version

+- Mirage Source (https://mirage-engine.uk/forums)
+-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61)
+--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18)
+---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17)
+---- Thread: Ok i've got a bug with paperdoll or 32x64 (/showthread.php?tid=1548)



Ok i've got a bug with paperdoll or 32x64 - wackydude1234 - 05-02-2008

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..


Re: Ok i've got a bug with paperdoll or 32x64 - Leighland - 08-02-2008

Omg I was just going to post this lol. Mine is doing the exact same thing ...

[Image: 72423475vu3.jpg]
[Image: 35909305tx3.jpg]
[Image: 56209507ho5.jpg]

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.


Re: Ok i've got a bug with paperdoll or 32x64 - Robin - 08-02-2008

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


Re: Ok i've got a bug with paperdoll or 32x64 - Robin - 08-02-2008

Try it.

It'll either disappear, or just not go past 0 or the max.


Re: Ok i've got a bug with paperdoll or 32x64 - Zalos - 09-02-2008

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.