Skip to content
Permalink
Browse files

Updated Game_CharacterBase to fix camera

The camera didn't follow the player if the player was affected by a
ease_moveto.
  • Loading branch information
TorD committed Dec 13, 2013
1 parent 23e62f2 commit 59bb11580a22d1355f26a8009c308df2cefc463f
BIN +1 KB (110%) Data/Map004.rvdata2
Binary file not shown.
@@ -119,10 +119,13 @@ def ease_opacity(opacity, frames, easing = :linear)
# * NEW Update Display Position (used by ease_moveto ease)
#--------------------------------------------------------------------------
def ease_moveto_update(ease_obj)
last_real_x = @real_x
last_real_y = @real_y
easing_container = ease_obj.target
@real_x = easing_container[:x]
@real_y = easing_container[:y]
increase_steps
update_scroll(last_real_x, last_real_y) if self.instance_of? Game_Player
end

#--------------------------------------------------------------------------
@@ -916,10 +916,13 @@ def ease_opacity(opacity, frames, easing = :linear)
# * NEW Update Display Position (used by ease_moveto ease)
#--------------------------------------------------------------------------
def ease_moveto_update(ease_obj)
last_real_x = @real_x
last_real_y = @real_y
easing_container = ease_obj.target
@real_x = easing_container[:x]
@real_y = easing_container[:y]
increase_steps
update_scroll(last_real_x, last_real_y) if self.instance_of? Game_Player
end

#--------------------------------------------------------------------------
BIN -50 Bytes (100%) Data/Scripts.rvdata2
Binary file not shown.
BIN +0 Bytes (100%) Data/System.rvdata2
Binary file not shown.

0 comments on commit 59bb115

Please sign in to comment.
You can’t perform that action at this time.