Allow camera to turn off level bounding if the player is moved out of bounds by a doodad #87

Closed
opened 2023-02-19 06:13:09 +00:00 by kirsle · 1 comment

Allow camera to turn off level bounding if the player is moved out of bounds by a doodad.

Example: you have a bounded level with a bottom edge, and you want to draw shop interiors or something below the ground of the level. You can switch your page type to Unbounded and draw out there, but in-game the camera won't scroll out of bounds even if the player is out there.

Logic can be like:

  • Catch it whenever an actor (like the warp door) calls MoveTo() and puts the player out of bounds.
  • When the followed actor is out of bounds on a Bounded level, temporary toggle the NoLimitScroll on the canvas to let it freely center on the player.
  • When they are back in bounds, toggle it off.
Allow camera to turn off level bounding if the player is moved out of bounds by a doodad. Example: you have a bounded level with a bottom edge, and you want to draw shop interiors or something below the ground of the level. You can switch your page type to Unbounded and draw out there, but in-game the camera won't scroll out of bounds even if the player is out there. Logic can be like: * Catch it whenever an actor (like the warp door) calls MoveTo() and puts the player out of bounds. * When the followed actor is out of bounds on a Bounded level, temporary toggle the NoLimitScroll on the canvas to let it freely center on the player. * When they are back in bounds, toggle it off.
Poster
Owner

Implemented in cf1bc81f25

Implemented in cf1bc81f2544bc8ec693bdafb777b2a3b6590113
kirsle added the
enhancement
label 2023-03-08 06:11:41 +00:00
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: SketchyMaze/doodle#87
There is no content yet.