Ian,
Let's take the issues one at a time.
Your post needs to be a little clearer - but it was good you posted an image so we can see what you are talking about.
From your post and the image I think you are asking why the alpha is not working? If you are then it is because to get alphas you need to use a texture flag of ',3' not ',1' when you load the image. ',1' sets the loaded image to a just a load an image with colour data.
Texture flags:
1 = load image colour
2 = load with alpha
So by adding the 1+2 = 3 we can load the colour image with alpha
Can I ask why are you using the loadtexture command? You may be better just using more Loadsprite commands. Do the same thing with the array but swap the animation.
Alternatively if this is a fully 2d game then why not simply use the LoadImage set of commands? You can do the animation using an image strip and an index counter such as shown here 'count' LoadAnimImage (filename,width,height,first,count)
Check out the docs. I personally always use png for sprites where I need alpha's.
Good luck
IPete2.
Let's take the issues one at a time.
Your post needs to be a little clearer - but it was good you posted an image so we can see what you are talking about.
From your post and the image I think you are asking why the alpha is not working? If you are then it is because to get alphas you need to use a texture flag of ',3' not ',1' when you load the image. ',1' sets the loaded image to a just a load an image with colour data.
Texture flags:
1 = load image colour
2 = load with alpha
So by adding the 1+2 = 3 we can load the colour image with alpha
Soldier=LoadSprite(StartWeapon$,1) ; just colour information
Soldier=LoadSprite(StartWeapon$,3) ; correct for loading the alpha too
Can I ask why are you using the loadtexture command? You may be better just using more Loadsprite commands. Do the same thing with the array but swap the animation.
Alternatively if this is a fully 2d game then why not simply use the LoadImage set of commands? You can do the animation using an image strip and an index counter such as shown here 'count' LoadAnimImage (filename,width,height,first,count)
Check out the docs. I personally always use png for sprites where I need alpha's.
Good luck
IPete2.