# Randomly generated floor spawns 2 overlapping floor

**URL:** <https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987>\
**Category:** World Creation\
**Tags:** unreal-engine, Collision, question, Blueprint\
**Created:** [September 29, 2016, 5:14pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987 "2016-09-29T17:14:23Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![anonymous\_user\_87cfa512](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_87cfa512](https://forums.unrealengine.com/u/anonymous_user_87cfa512)\
**Post date:** [September 29, 2016, 5:14pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987/1 "2016-09-29T17:14:23Z")

</div>

Hey everyone,

I`m having some problems with spawning a randomly generated floor for a side scrolling endless runner. I set the blueprint up to have 2 different versions of the floor ( one plain, one with an obstacle spawning randomly). I noticed that every couple of floors, the game spawns 2 copies overlapping each other. I tried changing the collision handling override on the spawn actor node, but it either does the same thing or stops spawning my floor. I attached a screenshot of the setup i used.

Thanks for the help

 ![108977-addfloortile.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/3/0/6/3060b42b3c0033017a0564e0fe4a4625a141a998.jpeg)

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 29, 2016, 5:34pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987/2 "2016-09-29T17:34:08Z")

</div>

Can you show the for loop where you call the “AddFloorTile” ?

-m

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_87cfa512](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_87cfa512](https://forums.unrealengine.com/u/anonymous_user_87cfa512)\
**Post date:** [September 29, 2016, 6:01pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987/3 "2016-09-29T18:01:52Z")

</div>

hey mamoniem,

Here is what i have that has anything to do with the floor tile, hopefully this helps. i followed an unreal tutorial for the spawning the course part.

 ![108984-forloop.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/e/b/deb7917b98030651abb79a05bbe03400bb62c5b7.jpeg)

 ![108985-attachpoint.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/e/a/0eae1c17be9d83dd7d326f4bcfaf011eafaa6235.jpeg)

 ![108986-trigger_add_destroy_floortiles.jpg](https://d3kjluh73b9h9o.cloudfront.net/original/4X/d/f/9/df91dc4b9112c44235a02dd0dd7c5beccfe83f42.jpeg)

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 29, 2016, 6:48pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987/4 "2016-09-29T18:48:04Z")

</div>

I would say here, don’t use “try adjust location” as you seems that you are certain about the position of spawning, so just make it ignore the collision:

![109001-screen+shot+2016-09-30+at+2.46.28+am.png](https://d3kjluh73b9h9o.cloudfront.net/original/4X/5/0/c/50cc4660ac6e5ef870d6ab5dcbfc52c4830fe771.png)

-m

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_87cfa512](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_87cfa512](https://forums.unrealengine.com/u/anonymous_user_87cfa512)\
**Post date:** [September 29, 2016, 6:53pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987/5 "2016-09-29T18:53:34Z")

</div>

I just tried it, I put ignore collision and then i tried the default setting, but the floors still overlap

---

<div class="post-metadata">

**Author:** ![mamoniem](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/mamoniem/32/1194698_2.png) [@mamoniem](https://forums.unrealengine.com/u/mamoniem)\
**Post date:** [September 29, 2016, 7:04pm UTC](https://forums.unrealengine.com/t/randomly-generated-floor-spawns-2-overlapping-floor/371987/6 "2016-09-29T19:04:46Z")

</div>

can you upload the project, as you mentioned it is a test for tutorial? or it is full commercial project ?

-m
