8)LJH42W4TWVM[[40`S(034.jpg (113.85 KB, 下载次数: 34)
举例
#Mirror Settter by LBQ # pictures(1).mirror = true # 1 is the index class Spriteset_Map #-------------------------------------------------------------------------- # =-= #-------------------------------------------------------------------------- def update_pictures $game_map.screen.pictures.each do |pic| @picture_sprites[pic.number] ||= Sprite_Picture.new(@viewport2, pic) @picture_sprites[pic.number].mirror = $game_map.screen.pictures[pic.number].mirror if $game_map.screen.pictures[pic.number].mirror @picture_sprites[pic.number].update end end end class Game_Picture attr_accessor :mirror end class Game_Interpreter def pictures(index) return $game_map.screen.pictures[index] end end
LBQ 发表于 2013-9-10 21:58
#Mirror Settter by LBQ
# pictures(1).mirror = true # 1 is the index
class Spriteset_Map
欢迎光临 Project1 (https://rpg.blue/) | Powered by Discuz! X3.1 |