I'm trying to create a wavy screen effect using Shaz's modified version of Brewmeister's Wavy Screen script:
However, whenever I set a picture to 19, it doesn't actually animate - it will properly create the amplitude of the wave, but it will remain a static image.
It appears to be having an issue with SeerUK & OriginalWij's Fixed Pictures script:
When I comment out the fixed pictures script, the wavy pictures script works just fine.
I don't know enough about Ruby to be able to figure out what's causing the conflict, I was hoping someone might have a relatively simple fix to make the two scripts compatible, as I've extensively used the fixed picture script throughout my project already.
#==============================================================================# ** Sprite_Picture# Modified to show wavy picture with picture 19,# and a wavy screen with picture 20# For wavy screen with picture 20:# Place a blank picture in the Pictures folder & select it# Set the "Position" to "Upper-Left" & 0,0# 01APR11 - Brewmeister#============================================================================== class Sprite_Picture alias wavy_init initialize def initialize(viewport, picture) wavy_init(viewport, picture) if @picture.number == 19 # wavy picture self.wave_amp = 5 self.wave_length = 208 self.wave_speed = 720 end if @picture.number == 20 # wavy screen self.wave_amp = 2 self.wave_length = 208 self.wave_speed = 720 end end alias wavy_update update def update if @picture_name != @picture.name and @picture.number == 20 cap_screen = [email protected]? end wavy_update if cap_screen self.bitmap = Graphics.snap_to_bitmap end endend
It appears to be having an issue with SeerUK & OriginalWij's Fixed Pictures script:
#==============================================================================# Fixed Pictures#==============================================================================# Author : Seer UK & OriginalWij# Version : 1.2## Credit: Seer UK# OriginalWij (Original RGSS2 Script)#==============================================================================#==============================================================================# To use:# put the tag [FIXED] in the affected picture's filename#==============================================================================#==============================================================================# What this does:# fixes tagged pictures to the map (scrolls with the map)#==============================================================================#==============================================================================# Sprite_Picture#==============================================================================class Sprite_Picture < Sprite #---------------------------------------------------------------------------- # Update [ MOD ] #---------------------------------------------------------------------------- def update update_bitmap update_origin if @picture.name.include?("[FIXED]") self.x = 0 - $game_map.display_x * 32 self.y = 0 - $game_map.display_y * 32 else update_position end update_zoom update_other endend
I don't know enough about Ruby to be able to figure out what's causing the conflict, I was hoping someone might have a relatively simple fix to make the two scripts compatible, as I've extensively used the fixed picture script throughout my project already.