Advertisement
dsiver144

Check Region ID

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