Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #==============================================================================
- # ** Lock on event FIX
- #------------------------------------------------------------------------------
- # This Class was made to fix the "turn toward player" on event interaction
- #==============================================================================
- $always_fix = false # Set to "true" if you want to "fix" all events
- $noturn = ["Animal","LockFix"] # Add "Characters" to fix
- class Game_Event < Game_Character
- #--------------------------------------------------------------------------
- # * Override Lock Def
- #--------------------------------------------------------------------------
- def lock
- unless @locked
- @prelock_direction = @direction
- #$game_variables[1] = @character_name //For debug purpone
- if (!$always_fix) && (!$noturn.include?(@character_name)) then
- turn_toward_player
- end
- @locked = true
- end
- end
- end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement