Why should I?
Here are now some new Problems:
I made the power and the energybar with sprites. So there are 22sprites only for this. May use backgrounds?
Like you can see on the pic I wanted to add alphablending with the following:
//Create the sprite
PA_DualCreateSprite(0,(void*)glace_Sprite, OBJ_SIZE_32X32,1, 0, 0, 0); // No need to choose the screen
//We want to make him invisible, if he loses power.
PA_DualSetSpriteMode(0, // Sprite
1); // Alphablending
PA_EnableSpecialFx( 0,
SFX_ALPHA, // Alpha blending mode
1, // Nothing
SFX_BG0 | SFX_BG1 | SFX_BG2 | SFX_BG3 | SFX_BD); // Everything normal
PA_EnableSpecialFx( 1,
SFX_ALPHA, // Alpha blending mode
0, // Nothing
SFX_BG0 | SFX_BG1 | SFX_BG2 | SFX_BG3 | SFX_BD); // Everything normal
[...]
/*power can be up to 10*/
PA_SetSFXAlpha(0,
power+5, // Alpha level, 0-15
15); // Leave this to 15
PA_SetSFXAlpha(1,
power+5, // Alpha level, 0-15
15); // Leave this to 15
.
Do you have any idea?