Цитата Сообщение от Элрик Посмотреть сообщение
Не.
Спойлер :
$blackout_time=600

class Scene_Base
alias blackout_on update
def update
blackout_on
blackout_update if !$blackout_block and $blackout_timer
$blackout_timer=-1 if Input.press?(:X)
blackout if $blackout_timer.to_i<0
end
end

def blackout_start
$blackout_timer=$blackout_time
$blackout_bar=Sprite.new
$blackout_bar.bitmap=Cache.picture("blackout_bar")
$blackout_bar.x=20
$blackout_bar.y=15
$blackout_bar.z=101
$blackout_bar.src_rect.set(0,0,101,8)
end

def blackout_update
$blackout_timer-=1
$blackout_bar.src_rect.width=11+10*($blackout_time r*10/$blackout_time) if $blackout_bar and !$blackout_bar.disposed?
end


def blackout
Graphics.brightness=0
$blackout_bar.dispose if $blackout_bar and !$blackout_bar.disposed?
$blackout_bar=nil
if $blackout_timer==-60
Graphics.brightness=255
blackout_start
end
end

Кнопка X запустит таймер. Можно скриптом: $blackout_timer=600. Отключить таймер: ($blackout_timer=nil; $blackout_bar=nil)