![]() |
Alpha Fading - Printable Version +- Mirage Source (https://mirage-engine.uk/forums) +-- Forum: Mirage Source (Nostalgia) (https://mirage-engine.uk/forums/forumdisplay.php?fid=61) +--- Forum: Archive (2006-2011) (https://mirage-engine.uk/forums/forumdisplay.php?fid=18) +---- Forum: General (https://mirage-engine.uk/forums/forumdisplay.php?fid=17) +---- Thread: Alpha Fading (/showthread.php?tid=660) |
Alpha Fading - Anthony - 20-01-2007 Well, currently I am working on an alpha fading way of doing day/night. What I have basically done is download a few codes from pscode and read a lot of stuff and have sort of learned it a bit. I am using the code from MRPGE and am not sure why I cannot get it working. I have had it so it flashes on the screen but thats all. So here is the code I am using. In my GameLoop Code: ' Draw night The SquareAlphaBlend sub Code: Public Sub SquareAlphaBlend( _ Thats it, I have a big black picture box on frmMirage which should be blended onto the picScreen. The alphablend api is the same as any. If maybe there is an easier way of doing this and more efficient that would be nice to find out, thanks a lot for any help. - Robin - 20-01-2007 Are you putting one picture box ontop of another? If so (you didn't post the Alphablend code itself ¬_¬) then go learn to do it with DX. - Tony - 20-01-2007 Just use fox 0___0 I think its efficient. And just alpha blend it till 255-0 - Robin - 20-01-2007 Fox isn't efficient XD Infact, most AB methods in 7 aren't efficient. Llllaaagggyyyy - Robin - 20-01-2007 Fox isn't efficient XD Infact, most AB methods in Mirage won't work well |