赞 | 0 |
VIP | 115 |
好人卡 | 4 |
积分 | 1 |
经验 | 23388 |
最后登录 | 2019-1-16 |
在线时间 | 634 小时 |
Lv1.梦旅人 华音阁主
- 梦石
- 0
- 星屑
- 61
- 在线时间
- 634 小时
- 注册时间
- 2006-7-14
- 帖子
- 3522

|
直接插入main前的脚本如下:
module RPG
class Sprite < ::Sprite
def animation(animation, hit)
dispose_animation
@_animation = animation
return if @_animation == nil
@_animation_hit = hit
@_animation_duration = @_animation.frame_max
animation_name = @_animation.animation_name
animation_hue = @_animation.animation_hue
bitmap = RPG::Cache.animation(animation_name, animation_hue)
if @@_reference_count.include?(bitmap)
@@_reference_count[bitmap] += 1
else
@@_reference_count[bitmap] = 1
end
@_animation_sprites = []
if @_animation.position != 3 or not @@_animations.include?(animation)
for i in 0..15
sprite = ::Sprite.new(self.viewport)
sprite.bitmap = bitmap
sprite.visible = false
@_animation_sprites.push(sprite)
end
unless @@_animations.include?(animation)
@@_animations.push(animation)
end
end
update_animation
end
def update_animation
if @_animation_duration > 0
self.opacity = 255
frame_index = @_animation.frame_max - @_animation_duration
cell_data = @_animation.frames[frame_index].cell_data
position = @_animation.position
animation_set_sprites(@_animation_sprites, cell_data, position)
for timing in @_animation.timings
if timing.frame == frame_index
animation_process_timing(timing, @_animation_hit)
end
end
else
self.opacity = 220
dispose_animation
end
end
end
end
________________________________________
然后在Sprite_Battler找到这段
if @battler.is_a?(Game_Actor) and @battler_visible
# 不是主状态的时候稍稍降低点透明度
if $game_temp.battle_main_phase
self.opacity += 3 if self.opacity < 255
else
self.opacity -= 3 if self.opacity > 207
end
end
改为:
if @battler_visible
if self.opacity >125
self.opacity -= 5
end
end
就OK了。if self.opacity >125的125这个数字是透明度,可以自己改。
恩,这个脚本,好想黑暗圣剑里也用到了,LZ可以试试 系统信息:本贴由楼主认可为正确答案,66RPG感谢您的热情解答~ |
|