Hi guys, I am trying to make my 2D game where a man can move all over the screen.
here the code for main sprite :
Quote: "
// load png image
imageA = LoadImage ( "uomo_test_frames.png" )
// create a sprite from imageA
spriteA = CreateSprite ( imageA )
SetSpriteAnimation ( spriteA, 78, 125, 4 )
PlaySprite ( spriteA, 10, 1, 1, 4 )
"
Ok, my sprite is taken from a png image. This image is a grid made by many 78x125 pixels cells. (please take a look on the attached png image)
You can notice the image is made by more than 4 frames (how I set in my code) but for my test I need just of first 4 frames.
Ok I got my sprite on the screen and it's cycling the frames!
All good BUT!..
I got my sprite inside a white box during the game..
I know that there is the issue about trasparency of one colour (the png image background colour) but my knowledge about finish here
Please, how I can make the white colour of png image as transparent from AppGameKit code?
Thanks!