Setting Alpha - Fade In

BlitzMax Forums/BlitzMax Beginners Area/Setting Alpha - Fade In

Matt Vinyl(Posted 2007) [#1]
Hi all,

Hopefully a quick question - I want a simple fade in affect, which I can easily do by:

If FADE<1
    FADE:+0.02
End if

SetAlpha FADE


But, I also want to fade in some other images at the same time which I ultimately want to only have an alpha of 0.5. How could I fade these images in at the same time as the main screen, but keep their 'resultant' alpha as 0.5?

Hope that makes sense! ;)


Brucey(Posted 2007) [#2]
Something like
SetAlpha myImageAlpha * FADE
DrawImage myImage, x, y

SetAlpha myOtherImageAlpha * FADE
... etc



Grey Alien(Posted 2007) [#3]
Yeah or get into having types, and each one with it's own Alpha level and draw method.