Rudimentary map wrapping added

This commit is contained in:
Mathew Velasquez 2015-11-20 21:08:00 -05:00
parent 652ef21a50
commit a28082cae3
7 changed files with 26 additions and 1 deletions

View file

@ -108,6 +108,13 @@ class Game_Character
# Increase animation count by 1
@anime_count += 1
end
# Wrap position
if @x * 128 == @real_x && @y * 128 == @real_y
@x %= $game_map.width
@y %= $game_map.height
@real_x = @x * 128
@real_y = @y * 128
end
end
#--------------------------------------------------------------------------
# * Frame Update (stop)