01-24-2023, 03:10 PM
@Terry a feedback on alpha channel
on studing a my idea I have painted some picture sprites with Paintbrush and saved as PNG files.
The first demo of Terry worked weel, while with the new demo I find this issue showed in the image posted.
On the left the original demo 5 in which the alpha 0 has been set on _rgb32(255,0,255)
on the right the demo 5 in which the alpha 0 has been set on _rgb32(0) (because in my pictures the background to be transparent is black).
So with original demo something is lost also if in the code the alpha 0 has been set for each image..
In the demo modded the alpha 0 channel has been set to black as the background of image loaded.
Here the images used
I hope it can be useful for future development.
@Bplus
I'm sorry, while I was typing the demo, very simple, in my mind grew up a dubt that need more test to do for getting an universal well working function of collision detection...
So,please gimme more Tempo to use for coding! I have no time in the week, I hope to have good time for weekend.
on studing a my idea I have painted some picture sprites with Paintbrush and saved as PNG files.
The first demo of Terry worked weel, while with the new demo I find this issue showed in the image posted.
On the left the original demo 5 in which the alpha 0 has been set on _rgb32(255,0,255)
on the right the demo 5 in which the alpha 0 has been set on _rgb32(0) (because in my pictures the background to be transparent is black).
So with original demo something is lost also if in the code the alpha 0 has been set for each image..
In the demo modded the alpha 0 channel has been set to black as the background of image loaded.
Here the images used
I hope it can be useful for future development.
@Bplus
I'm sorry, while I was typing the demo, very simple, in my mind grew up a dubt that need more test to do for getting an universal well working function of collision detection...
So,please gimme more Tempo to use for coding! I have no time in the week, I hope to have good time for weekend.