Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
HW image version of this little stupid thing
#24
(09-12-2023, 10:54 PM)grymmjack Wrote:
(09-12-2023, 01:21 PM)a740g Wrote: Made a few changes.

Code: (Select All)

ALIEN_SPRITE& = _NEWIMAGE(w% + 1, h% + 1, 256)
_DEST ALIEN_SPRITE&
PSET (0, 10)
DRAW ALIEN$
_CLEARCOLOR 0, ALIEN_SPRITE&
ALIEN_32& = _NEWIMAGE(w% + 1, h% + 1, 32)
_SOURCE ALIEN_SPRITE&: _DEST ALIEN_32&: _PUTIMAGE
ALIEN_HW& = _COPYIMAGE(ALIEN_32&, 33)

Thanks @a740g ! I was missing `_CLEARCOLOR 0` somehow, and that was the fix?

I don't quite understand that because the screen is `320x200` and the sprite is only `50x50` or so.

Why was the entire background black and not showing the blue?

Thanks again!
The `_CLEARCOLOR` is for the sprite transparency. I removed the `_DISPLAYORDER _HARDWARE` line. `_DISPLAYORDER _HARDWARE` will render hardware surfaces only. So, basically `CLS , _RGB32(0, 0, 255)` had no effect with that line.
Reply


Messages In This Thread
RE: HW image version of this little stupid thing - by a740g - 09-12-2023, 11:48 PM



Users browsing this thread: 10 Guest(s)