I have an event that the player is able to take control of (i.e. when the player pushes Left, the event moves left, and so on), while the player character and other events remain unmoving (Escape key exits this process). It's working fine, but there's one thing I need to tweak, and I haven't been able to manage it through eventing.
I would like to prevent the controllable event from going offscreen; e.g. if it's at the top of the screen and the player presses Up, even if there's more map in that direction, the event does not move. Obviously I can restrict the controllable event's movement based on tiles/regions/other events/etc., but what I need is a restriction based on the current edges of the screen.
Thank you for reading my request!
I would like to prevent the controllable event from going offscreen; e.g. if it's at the top of the screen and the player presses Up, even if there's more map in that direction, the event does not move. Obviously I can restrict the controllable event's movement based on tiles/regions/other events/etc., but what I need is a restriction based on the current edges of the screen.
Thank you for reading my request!