Game Development Community

DALO's Resources

Damage Flash + Blackout = Timed ColorOut

Flash ColorIn/Out Based on time. Alrighty then.....this is my first resource submission, it may be of use for someone else. I was actually trying to figure out a way to fade the screen from being instantly white back to normal and vice versa. I accomplished it using a schedule being looped until the screen was either full white, 1.0 or not 0.0. using setWhiteOut. I don't like using schedules for some reason and I also wanted it to be slightly blue and red for a different purpose. I noticed one of Blackout's parameters had time and thanks to Louis Dufresne from this resource Change damage flash color in script: http://www.garagegames.com/index.php?sec=mg&mod=resource&page=view&qid=14886 I was able to create my own custom function that fades colors in/out based on time. So here it goes.......

Author DALO Date 06/23/2008 (7:26 am) Comment 2 comments