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

Possibly Related Threads…
Thread Author Replies Views Last Post
  Is ther a version 4.2.2 still available? astrovidiot 1 231 01-15-2026, 09:07 AM
Last Post: SMcNeill
  A funny thing happened on the way to the Forum... PhilOfPerth 4 504 10-22-2025, 12:11 AM
Last Post: madscijr
  error doing image collision detection with _MemGet madscijr 55 4,684 10-01-2025, 03:25 PM
Last Post: bplus
Photo from png tile, create symmetrical screen image hsiangch_ong 11 941 08-23-2025, 01:23 AM
Last Post: bplus
  need help printing a scaled string in a custom font to a 32-bit image madscijr 9 1,150 07-03-2025, 04:48 PM
Last Post: SMcNeill

Forum Jump:


Users browsing this thread: