# Spawn new actor attached to another moving actor without gap or overlap.

**URL:** <https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734>\
**Category:** Community & Industry Discussion\
**Tags:** moving, align, position, unreal-engine, spawning-actors, question\
**Created:** [February 13, 2021, 12:23pm UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734 "2021-02-13T12:23:33Z")\
**Posts on this page:** 6\
**Page:** 2

<div class="post-metadata">

**Author:** ![anonymous\_user\_77bfa3251](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_77bfa3251](https://forums.unrealengine.com/u/anonymous_user_77bfa3251)\
**Post date:** [February 17, 2021, 10:38am UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734/21 "2021-02-17T10:38:55Z")

</div>

One additional note.

Enabling the delay & destruction on the tiles makes the overlap more frequent. Same for not using an initial loop to spawn a couple of tiles. Those should have no effect on the placement of the actors. So it looks like there is a link to the performance/framerate of the system.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [February 17, 2021, 11:26am UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734/22 "2021-02-17T11:26:24Z")

</div>

One of the main points, is that the arrow needs to be parented by the mesh, otherwise there’s no point in using it as a spawn point.

Yes, I made a mistake with placing more than one in the viewport, they will overlap.

But spawning at the world location of the arrow is the way to go.

The delay before kill has to be timed with the timeline length to avoid overlaps.

---

<div class="post-metadata">

**Author:** ![LeetUnion](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@LeetUnion](https://forums.unrealengine.com/u/LeetUnion)\
**Post date:** [August 8, 2021, 8:25am UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734/23 "2021-08-08T08:25:11Z")

</div>

Hi, have you fixed it? I am also trying to use Projectile Movement to move the runner tile.

---

<div class="post-metadata">

**Author:** ![ClockworkOcean](https://d1ap1mz92jnks1.cloudfront.net/user_avatar/forums.unrealengine.com/clockworkocean/32/1169999_2.png) [@ClockworkOcean](https://forums.unrealengine.com/u/ClockworkOcean)\
**Post date:** [August 8, 2021, 9:00am UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734/24 "2021-08-08T09:00:37Z")

</div>

That’s not a good way to do it ( unless you want the tile to fly past like a ball ). There are a gazillion tutorials on yt about endless runners

https://www.youtube.com/embed/yS-yQfo0lc0?feature=oembed&wmode=opaque&list=PLZlv_N0_O1gbY4FN8pZuEPVC9PzQThNn1

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_77bfa3251](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_77bfa3251](https://forums.unrealengine.com/u/anonymous_user_77bfa3251)\
**Post date:** [August 9, 2021, 8:11am UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734/25 "2021-08-09T08:11:21Z")

</div>

Yes, there are a lot of tutorials. But all of them as far as I could find back then all did the same thing, like the one you are linking here.  
They all go for the easiest set up, moving the player along an axis and spawning tiles in front of the player.  
However, I did not want to use this approach because this way the player/scene position keeps moving away from 0,0,0 into infinity. The whole point & reason to have the environment scroll is so that the play area stays at 0,0,0.

---

<div class="post-metadata">

**Author:** ![anonymous\_user\_77bfa3251](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@anonymous\_user\_77bfa3251](https://forums.unrealengine.com/u/anonymous_user_77bfa3251)\
**Post date:** [August 9, 2021, 8:21am UTC](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734/26 "2021-08-09T08:21:03Z")

</div>

No haven’t fixed it. Back when I was looking into this issue I could not find a solution to completely avoid overlap. So I skipped the issue for a later date. And haven’t had any time in the last months to go back to this particular side project =(.

But I think that this plugin scrolls the background and not the player.  
But I haven’t had a proper look at how the blueprint logic for the spawn positioning worked.

> **[Endless Runner Creator V3 in Blueprints - UE Marketplace](https://www.unrealengine.com/marketplace/en-US/product/endless-runner-creator)**
>
> The all in one tool for quickly creating top quality endless runner games.

His free tutorial (DevEnabled) on youtube moves the player. =/ (At least last time I checked.)

[Previous page](https://forums.unrealengine.com/t/spawn-new-actor-attached-to-another-moving-actor-without-gap-or-overlap/478734.md?page=1)
