Mystic Software Forums

Mystic Software => General Discussion => Topic started by: Ichigatsu on December 26, 2005, 09:10:12 AM

Title: (no subject)
Post by: Ichigatsu on December 26, 2005, 09:10:12 AM
I want to know how to fade into a white background for like an explosion or a flashback or something.
Title: (no subject)
Post by: Xorlak on December 26, 2005, 03:09:49 PM
You could do something like this:

Code: [Select]
for(i! = 0; i!<=255; i!+=25){
  ambientred! = i!
  ambientgreen! = i!
  ambientblue! = i!
  forceredraw()
}

(Note: Didn't test that trick in TK3 yet.)

Basically just redraws the board lighter and lighter repeatedly.  You can increase the 25 in 'i!+=25' to make it go faster if it's too slow.