Pictures aren't fixed while shaking on the map with this script. How can I change this?
Vertically Shaking Screen Script: ShowHide
#by Shining Advances
class Game_Screen
attr_accessor :vertikal
end
class Spriteset_Map
alias shake_update update
def update
shake_update
if $game_screen.vertikal == true
@viewport1.oy = $game_screen.shake
@viewport1.ox = 0
else
@viewport1.ox = $game_screen.shake
@viewport1.oy = 0
end
end
end
I have nearly no experience in scripting, but I guess it's a small problem.