Script Code is messed up! Can you help me?

Hey There!

I have the same Problem as described in this Thread: https://forums.rpgmakerweb.com/index.php?threads/ace-camera-stops-when-dashing.38092/#post-773808

The problem seems to be solved with a code from "♥SOURCE♥" but the code is totally messed up and cant be used like that. And since Im no Scripter I have no idea how to allign the code to make it work. Can you please help me? 🙂

This is the Code:

class Game_Player < Game_Character def ecam_moving? moving? || @vpm_last_x != @real_x || @vpm_last_y != @real_y end alias_method🙂vpm_fix_original_update, :update) def update @vpm_last_x = @real_x @vpm_last_y = @real_y vpm_fix_original_update end end
Code:
class Game_Player < Game_Character
def ecam_moving?
moving? || @vpm_last_x != @real_x || @vpm_last_y != @real_y
end
alias_method(:vpm_fix_original_update, :update)
def update
@vpm_last_x = @real_x 
@vpm_last_y = @real_y 
vpm_fix_original_update
end
end

This looks correct to me, but I'm not a ruby coder.
It works perfect!! 😀 Thank you very much! 🙂

Original thread: https://forums.rpgmakerweb.com/threads/script-code-is-messed-up-can-you-help-me.83852/