If I have a list of sprites each representing an image.
I would like to do the following.
If(mouse.left=="up")
{
currentsprite=spritearray.getnext();
currentsprite.opacity=0;
currentsprite.display=true;
while(currentsprite.opacity<100)
{
currentsprite.opacity+=1;
oldsprite.opacity=-1;
}
oldsprite.destroy();
oldsprite=currentsprite;
}
So to explain with text I want to pick another sprite and make it fade in while the old sprite fades out. Making a smooth image swap.
Grateful for you help on this.