The cloned sprite will not accept the alpha color. Is this due to the original sprite not being set to the same alpha? Can I only change the original sprites alpha?
for i = 0 to globalmsg.length
if globalmsg[i] <> ""
if GetSpriteExists( globalmsgspr[i] )
if GetSpriteVisible( globalmsgspr[i] ) = 1 then continue
endif
x# = GetSpriteWidth( global_msg_bg )
y# = GetSpriteHeight( global_msg_bg )
globalmsgtxt[i] = CreateText(globalmsg[i])
SetTextSize( globalmsgtxt[i], 15 )
globalmsgspr[i] = CloneSprite( global_msg_bg )
SetSpritePosition( globalmsgspr[i], 512, 384 )
SetSpriteVisible( globalmsgspr[i], 1 )
SetSpriteColorAlpha( globalmsgspr[i], 150 )
SetTextPosition( globalmsgtxt[i], GetSpriteX( globalmsgspr[i])+5.0, GetSpriteY( globalmsgspr[i] )+(y#/2.0)-7.5 )
endif
next i
As you can see, the alpha channel of the sprite that is below the text "Can't place floor here" is unchanged.