Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Sprite_Picture
- def update_bitmap
- if @picture.name != @pic_name
- self.bitmap = Cache.picture(@picture.name)
- end
- @pic_name = @picture.name
- end
- end
- 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].update
- if pic.name == ""
- $game_map.screen.pictures.remove(pic.number)
- @picture_sprites[pic.number].dispose
- @picture_sprites[pic.number] = nil
- end
- end
- end
- end
- class Game_Pictures
- def remove(index)
- @data[index] = nil
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment