09-13-2023, 01:00 AM
(09-12-2023, 11:48 PM)a740g Wrote:(09-12-2023, 10:54 PM)grymmjack Wrote: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.(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!
But without that, it's not using _HARDWARE images?