Mirage Source
Weirdest glitch ever - 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: Weirdest glitch ever (/showthread.php?tid=1632)



Weirdest glitch ever - Stomach Pulser - 22-03-2008

Well, I added in a VisualInventory to my game. It works fine for adding items, blts them correctly. But, when I blt over that (when the player drops/looses the item) with black, there aer 2 remaining pixels on the right side and the bottom of the object there berfore it. I checked my values and they are all constrained to PIC_X and PICY (which is 32x32) and I am getting from the 0x0 spot of the picture box I am copying from. To fix this, I had to increase the picture box to 34x34.

It doesn't really make much difference, it just shouldn't be like that, I'm hoping something isn't horribly wrong.

Other info:
Visual inventory is one big box (5x3 space (15 items))
Updated through a timer
Everything is in pixels (not twips)

I am not posting my code yet, as I don't really want to. If the code is needed to diagnose this then I will post it, but I would like to figure it out before that.