# Problems with spawning the boss room in the dungeon

**URL:** <https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572>\
**Category:** Programming & Scripting\
**Tags:** unreal-engine, question, Blueprint\
**Created:** [May 14, 2025, 10:35pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572 "2025-05-14T22:35:45Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Pocquer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pocquer](https://forums.unrealengine.com/u/Pocquer)\
**Post date:** [May 14, 2025, 10:35pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572/1 "2025-05-14T22:35:45Z")

</div>

My boss room is being spawned on top of others and I’ve already tried to solve this problem in a thousand ways, could you help me? I followed the tutorial on the following channel: [https://youtube.com/playlist?list=PLrZV1-GZa3Ds1-ON\_oeWIdLHXCJ1QZH1P&si=RJboekKML0rohNw8](https://youtube.com/playlist?list=PLrZV1-GZa3Ds1-ON_oeWIdLHXCJ1QZH1P&si=RJboekKML0rohNw8)

---

<div class="post-metadata">

**Author:** ![Pocquer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pocquer](https://forums.unrealengine.com/u/Pocquer)\
**Post date:** [May 14, 2025, 10:36pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572/2 "2025-05-14T22:36:53Z")

</div>

![Captura de tela 2025-05-14 180111](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/b/c/abc3850d038cc9ad86e1dfe1dd3e59a4c26ebc93.png)  
 ![Captura de tela 2025-05-14 180050](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/9/f79164f08571e307f6deb7ffae2885f8af33a8ea.png)  
 ![Captura de tela 2025-05-14 180031](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/8/d/f8deadc20312bc0ba9667ac149c4036e25c01903.png)  
 ![Captura de tela 2025-05-14 180115](https://d3kjluh73b9h9o.cloudfront.net/original/4X/a/2/4/a245abf9acbe5a623e690e787384bc49dc95e974.png)  
 ![Captura de tela 2025-05-14 180143](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/9/8/b984f77cd91e2344fd8f73bcbaa7db30afdad89e.png)  
 ![Captura de tela 2025-05-14 180149](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/8/1/38118584887890fccd1b9f8e0cf899a4c9ca7923.png)  
 ![Captura de tela 2025-05-14 180154](https://d3kjluh73b9h9o.cloudfront.net/original/4X/b/d/d/bdd44177e674915a62d99541ba48160b9cdd9fb1.png)  
 ![Captura de tela 2025-05-14 180201](https://d3kjluh73b9h9o.cloudfront.net/original/4X/4/f/e/4fe2203fa5deabb8514d39dfe39809039b6a8055.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [May 14, 2025, 10:57pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572/3 "2025-05-14T22:57:45Z")

</div>

Hey @Pocquer!

 ![image](https://d3kjluh73b9h9o.cloudfront.net/original/4X/8/9/d/89da5a1997be258887c19f06583d601091a9d5ea.png)

Here you’re creating the next room but if it has exits they aren’t being added into the array of exits. Also you need to remove the exit used to spawn this room from the array of exits. 🙂 HOPEFULLY that’s all you will need to do!

---

<div class="post-metadata">

**Author:** ![Pocquer](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@Pocquer](https://forums.unrealengine.com/u/Pocquer)\
**Post date:** [May 15, 2025, 12:26pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572/4 "2025-05-15T12:26:56Z")

</div>

The problem keeps happening 🥲

 ![Captura de tela 2025-05-15 092541](https://d3kjluh73b9h9o.cloudfront.net/original/4X/f/7/f/f7fc61eab51bafed50ecbacf32b60bab15aaf25e.jpeg)  
 ![Captura de tela 2025-05-15 091859](https://d3kjluh73b9h9o.cloudfront.net/original/4X/9/6/b/96ba1ee7cefe52bd581c3347788adfed00b5dec3.png)

---

<div class="post-metadata">

**Author:** ![Mind-Brain](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mind-brain/32/906573_2.png) [@Mind-Brain](https://forums.unrealengine.com/u/Mind-Brain)\
**Post date:** [May 15, 2025, 9:01pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572/5 "2025-05-15T21:01:05Z")

</div>

With the other rooms you’re checking- but with the boss room you aren’t checking to see if it is overlapping with another room. Take some of the code from the “check overlapping rooms” Event to ensure that it isn’t overlapping- and if it is, do what you did with the other rooms and run the boss room spawn again. Loop it until it’s settled and not overlapping, THEN move on to the close rooms Event. 🙂

---

<div class="post-metadata">

**Author:** ![WonderWoman](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@WonderWoman](https://forums.unrealengine.com/u/WonderWoman)\
**Post date:** [May 15, 2025, 9:07pm UTC](https://forums.unrealengine.com/t/problems-with-spawning-the-boss-room-in-the-dungeon/2510572/6 "2025-05-15T21:07:11Z")

</div>

Hey, I’d tackle it like this:

1. **Deferred spawn + overlap check**

- Spawn your BossRoom with **SpawnActorDeferred** , set its box collision to “Query Only,” then **FinishSpawningActor**.
- Call **GetOverlappingActors** on that box—if you get any hits, destroy the room and pick a new location; otherwise, enable normal collision and you’re good to go.

1. **Limit your attempts**  
Wrap that in a simple loop (e.g. 5–10 tries) so you don’t hang if space is tight.

That approach keeps each spawn “safe” before it ever collides.

Oh—and if you want to keep track of which Blueprints you’ve stress-tested (or any other per-asset to-do), our Asset Optics plugin lets you pin checklists and comments right on the asset in-editor. It’s a huge help for staying organized:  
🔗 [Asset Optics – Next-Gen Asset Management | Fab](https://www.fab.com/listings/d2c4b6b3-1960-4781-bde3-44db744561a2)
