- Joined
- Feb 4, 2014
- Messages
- 752
- Reaction score
- 154
- First Language
- English
- Primarily Uses
Hi, below is a short script by Kread that helps update events, can someone please explain what the numbers for dx and dy do and why, when I increase them, I don't notice a difference.
#
# ~Kread
class Game_Event < Game_Character
#--------------------------------------------------------------------------
# * Determine if Near Visible Area of Screen
#--------------------------------------------------------------------------
alias_method
krx_alfix_ge_nts?, :near_the_screen?)
def near_the_screen?(dx = 12, dy = 8)
# YEA compatibility
if $imported && $imported["YEA-CoreEngine"]
dx = dy = nil
end # YEA compatibility
return true if @event.name.include?('[update]')
return krx_alfix_ge_nts?(dx, dy)
end
end
Could someone explain how I could alter this script to extend the distance it updates my events?
Also, could I rename "[update]" to "update" because the brackets are interfering with a different script I am using.
thanks.
# Put [update] in the event's name and the move route will always update.
# ~Kread
class Game_Event < Game_Character
#--------------------------------------------------------------------------
# * Determine if Near Visible Area of Screen
#--------------------------------------------------------------------------
alias_method
def near_the_screen?(dx = 12, dy = 8)
# YEA compatibility
if $imported && $imported["YEA-CoreEngine"]
dx = dy = nil
end # YEA compatibility
return true if @event.name.include?('[update]')
return krx_alfix_ge_nts?(dx, dy)
end
end
Could someone explain how I could alter this script to extend the distance it updates my events?
Also, could I rename "[update]" to "update" because the brackets are interfering with a different script I am using.
thanks.
Last edited by a moderator:
