前言 |
实现 |
脚本源码 |
#============================================================================== # ■ 设置图片波动效果 # By :VIPArcher [email: [email][email protected][/email]] # -- 本脚本来自 httprpg.blue 使用或转载请保留以上信息。 #============================================================================== # 事件脚本调用 set_wave(显示图片编号, 振幅, 周期, 速度) #============================================================================== class Game_Picture attr_reader :wave_amp # 波动振幅 attr_reader :wave_length # 波动周期 attr_reader :wave_speed # 波动速度 alias sprite_wave_init_basic init_basic def init_basic sprite_wave_init_basic @wave_amp, @wave_length, @wave_speed = 0, 180, 360 end def set_wave(wave_amp, wave_length, wave_speed) @wave_amp, @wave_length, @wave_speed = wave_amp, wave_length, wave_speed end end class Sprite_Picture < Sprite alias sprite_wave_update update def update sprite_wave_update update_wave end def update_wave self.wave_amp = @picture.wave_amp self.wave_length = @picture.wave_length self.wave_speed = @picture.wave_speed end end class Game_Interpreter #-------------------------------------------------------------------------- # ● 设置图片波动参数 # id:图片编号 wave_amp:振幅 wave_length:周期 wave_speed:速度 #-------------------------------------------------------------------------- def set_wave(id, wave_amp = 0, wave_length = 180, wave_speed = 360) screen.pictures[id].set_wave(wave_amp, wave_length, wave_speed) end end
截图 |
范例下载 |
781.62 KB, 下载次数: 140
售价: 2 星屑 [记录]
未带dll
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |