Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Player
- #---------------------------------------------------------------------------
- # * Check Front Region ID
- # @ Hàm Trả về Region ID của Tile trước mặt Player.
- #---------------------------------------------------------------------------
- def pdfr
- offset={};offset[2]=[0,1];offset[4]=[-1,0];offset[6]=[1,0];offset[8]=[0,-1]
- region_id = $game_map.region_id(@x+offset[@direction][0],@y+offset[@direction][1])
- return region_id
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement