Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- module WHITEN_ENEMY
- FLICKER = true
- FLICKER_RATE = 45
- end
- class Window_BattleEnemy < Window_Selectable
- def update
- super
- return unless active
- type = :whiten
- if WHITEN_ENEMY::FLICKER
- @last_sprite_effect_type = enemy.sprite_effect_type
- @change_counter = 0 if @change_counter.nil? or @change_counter >
- WHITEN_ENEMY::FLICKER_RATE
- @change = @change_counter > (WHITEN_ENEMY::FLICKER_RATE / 2)
- type = @last_sprite_effect_type
- type = :whiten if @change
- end
- enemy.sprite_effect_type = type
- @change_counter += 1 if WHITEN_ENEMY::FLICKER
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement