doctorbatmanwho-creator 8cf34c2d93 Added randomized NPC spawning and shout effects to Library level
**NPC System**
- Created a reusable NPC scene with idle and walking animations.
- Added an animated shout effect that can be enabled or disabled for individual NPCs.
- Added an InteractionArea to detect when the Player approaches an NPC, preparing for future panic attack triggers.
- Configured shout effects to remain visible regardless of Player proximity.

**Randomized NPC Spawning**
- Added 10 designated NPC spawn points throughout the Library's three floors.
- Created an NPCSpawner with configurable minimum and maximum NPC counts (currently 2–10).
- NPCs spawn at randomly selected locations each time the Library loads.
- Each NPC has a 40% chance of receiving the shout effect.

**Bug Fixes**
- Fixed NPCs failing to appear because Godot was still initializing the Library scene.
- Updated NPC spawning to use deferred node addition and positioning.
- Confirmed NPCs now spawn successfully.

**Next Steps**
- Add randomized appearances using the 12 available NPC sprite sets.
- Implement NPC walking and movement behaviours.
- Add the smell effect when its animation assets are ready.
- Connect NPC proximity detection to the panic attack system.
2026-11-22 20:19:34 -05:00
2025-06-02 18:53:43 -04:00
2025-06-02 18:53:43 -04:00
2025-06-02 18:53:43 -04:00
2025-06-02 18:53:43 -04:00
2025-11-06 20:44:15 -05:00
S
Description
No description provided
34 MiB
0 Stars 1 Watchers 0 Forks
Languages
GDScript 100%