Author Topic: (no subject)  (Read 1219 times)

Ichigatsu

  • Member
  • *
  • Posts: 27
    • View Profile
(no subject)
« 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.
« Last Edit: December 31, 1969, 06:00:00 PM by Ichigatsu »
\"Von eve das ou la gyumi. Ihyudor, Laj zhisk ah traubem brriaal, von das ou ttach gyumi klruger ba set\".

(and yes, it\'s a made up language)

Xorlak

  • Administrator
  • Member
  • *****
  • Posts: 2225
    • View Profile
    • http://darkagegames.net
(no subject)
« Reply #1 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.
« Last Edit: December 31, 1969, 06:00:00 PM by Xorlak »