Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class Game_Interpreter
- def event
- $game_map.events[@event_id]
- end
- def direction
- $game_map.events[@event_id].direction
- end
- def menghadap_player?
- case direction
- when 2 # Bawah
- event.x == $game_player.x && $game_player.y > event.y
- when 4 # Kiri
- event.y == $game_player.y && $game_player.x < event.y
- when 6 # Kanan
- event.y == $game_player.y && $game_player.x > event.y
- when 8 # Atas
- event.x == $game_player.x && $game_player.y < event.y
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment