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.
it's because the pictures arn't in the same viewport as the map spriteset, here this should do it.
#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 = @viewport2.oy = $game_screen.shake
@viewport1.ox = @viewport2.ox = 0
else
@viewport1.ox = @viewport2.ox = $game_screen.shake
@viewport1.oy = @viewport2.oy = 0
end
end
end
Thank you; now my picture-animated cutscenes look way better. :]