-
Notifications
You must be signed in to change notification settings - Fork 0
Patrolling Enemy
Andrew Hernandez edited this page Jul 1, 2026
·
6 revisions
The patrolling enemy moves back and forth, it harms the player if it makes contact with them.
Connecting Systems:
List of known bugs. Be descriptive but keep it brief!
- None
List of features and descriptions within system.
Patrolling Behavior:
- The enemy moves horizontally when it spawns in. Its starting direction can be set to left or right.
- Restricted patrolling enemies will pivot when reaching the edge of a platform.
-
moveSpeed: float= Changes the move speed of the enemy. -
restricted: bool= If it's true, the enemy cannot move onto empty air and will turn around when it would. -
direction: bool= The initial direction that the enemy moves in, an arrow indicates this for the player to understand.
-
func patrol_behavior() -> void: Moves around the patrolling enemy, changes direction when it hits a wall, additionally if restricted is enabled turns around when it would run off of solid ground. Also checks for collisions with other enemies and bounces back if it hits one.
Future Work:
- Add interactions with tile types such as slow and bounce.
Risks:
- None
A place for miscellaneous notes pertaining to this system.
- None
Resources
Known Issues
Future Work
Globals
Managers
- Main Menu Manager
- Master Manager
- Camera Manager
- Hotkey Manager
- Import Export Manager
- Audio Manager
- Animation Manager
- PopUp Manager
UI
Managers
- Editor Manager
- Tile Manager
- Entity Manager
- Icon Manager
- Preview Manager
- Tool Manager
- Asset Manager
- Custom Cursor Manager
Tiles & Entities
- Grid Lines
- Preview Line
- Tiles & Entities
- Enemies
- Patrolling Enemy
- Flying Enemy
- Shooting Enemy
- Stationary Enemy
- Moving Platform
- Property Editing
Asset Swapping
UI
Managers
Player