Hey, I was making some mechanics involving the use of Autonomous Movement, but I have been stumbled. The Autonomous Movement doesn't run/update outside the player's camera (not even with Parallel Process). I have tried a snippet but it doesn't work (I get an error) even on a new project, which I assume is because of Ace's updates. Anti-Lag scripts has been suggested but it still doesn't run/update the Autonomous Movement when outside the player's camera.
Snippet error:
Snippet:
Demo (the guard should come from the right. interact with the event above the player to walk through water):
Snippet error:
http://i.imgur.com/qqkWy06.png[/img]
Snippet:
# 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
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
#
# ~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
Demo (the guard should come from the right. interact with the event above the player to walk through water):
Last edited by a moderator:

