JOY-LESS'S PROFILE

Cat Maid Castle
Escape a castle full of cat maids!

Search

[RGSS3] [RMVX ACE] Screen Shake Bug Fix

I'm unsure if this bug has already been fixed by another script, but I couldn't find one and this was causing me issues so here it is anyway.

The "Shake Screen" event command has a bug which causes it to wait for a strange amount of time. The devs appear to have forgotten there are two parameters in the shake screen command - power and speed.

Here is the broken code:
#--------------------------------------------------------------------------
# * Screen Shake
#--------------------------------------------------------------------------
def command_225
  screen.start_shake(@params[0], @params[1], @params[2])
  wait(@params[1]) if @params[2]
end

Fix (place under Materials):
class Game_Interpreter
  #--------------------------------------------------------------------------
  # * Screen Shake
  #--------------------------------------------------------------------------
  def command_225
    screen.start_shake(@params[0], @params[1], @params[2])
    wait(@params[2]) if @params[3]
  end
end
Pages: 1