Skip to content

Ensure an event calling trainer_eye_sequence will always look the player

Rey requested to merge TheRey/pokemonsdk:demo/trainer_eye_sequence into development

MR Description

  • This MR adds a single call to the turn_toward_player method of Game_Character at the end of the move route of the NPC. In some cases, like when using the player_spotted_rect? method to detect the player, the moving event will finish its moveroute and not look the player. This MR fixes this behaviour.

Tests to realize

  • Create a trainer-type event using the player_spotted_rect? command. Ingame, move your character in such a way it will force the event to finish its route not looking at you: the event should look at you at any circumstance.
Edited by Zøzo

Merge request reports