# Started learning UE4, can I get a bit of help on this part of the project?

**URL:** <https://forums.unrealengine.com/t/started-learning-ue4-can-i-get-a-bit-of-help-on-this-part-of-the-project/495030>\
**Category:** Community & Industry Discussion\
**Tags:** side-scroller, unreal-engine, UE4, question, UE4-27\
**Created:** [February 6, 2022, 8:19pm UTC](https://forums.unrealengine.com/t/started-learning-ue4-can-i-get-a-bit-of-help-on-this-part-of-the-project/495030 "2022-02-06T20:19:42Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KiraGio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KiraGio](https://forums.unrealengine.com/u/KiraGio)\
**Post date:** [February 6, 2022, 8:19pm UTC](https://forums.unrealengine.com/t/started-learning-ue4-can-i-get-a-bit-of-help-on-this-part-of-the-project/495030/1 "2022-02-06T20:19:43Z")

</div>

Hi,

I’m trying to make a map that generates itself the moment I move towards a direction. That’s because I need a big map and I don’t want to just make an enormous floor beforehand. If you can, try and watch a Vampire Survivors gameplay on Youtube, that is exactly what I’m aiming towards.

I set it up topdown, put down a floor tile and added a collision box on the very right end and added a “on component begin overlap” to spawn a floor tile on collision with the box.

1 - Is it better to have a collision box on one side and check when Overlap or having one collision cube on the center and check when the player gets out of it?  
2- I would need to destroy older tiles after a certain distance to not clog the whole game but I wouldn’t know how.  
3- Any other ideas? The more precise the better, I’m trying to learn, sorry for having multiple questions!

Thanks a lot, I appreaciate it. Ask anything you need to better understant, I will answer.

---

<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 6, 2022, 9:10pm UTC](https://forums.unrealengine.com/t/started-learning-ue4-can-i-get-a-bit-of-help-on-this-part-of-the-project/495030/2 "2022-02-06T21:10:41Z")

</div>

If the map is large and you know the layout beforehand, use level streaming:

[![](https://d3kjluh73b9h9o.cloudfront.net/original/4X/0/1/6/016c5cfff80db4605e4b709806833b08b071f8fd.jpeg "HTF do I? Level Streaming using Volumes in Unreal Engine 4") ](https://www.youtube.com/watch?v=hemu6rlgzkQ)

If the map is going to be procedurally generated, it’s really up to you how you do it. One easy way to decide when to destroy actors is by distance from the player.

---

<div class="post-metadata">

**Author:** ![KiraGio](https://d3kjluh73b9h9o.cloudfront.net/original/4X/2/8/5/28502927f1d97ba1051b3b47ccfe17233bf41ef0.png) [@KiraGio](https://forums.unrealengine.com/u/KiraGio)\
**Post date:** [February 6, 2022, 10:11pm UTC](https://forums.unrealengine.com/t/started-learning-ue4-can-i-get-a-bit-of-help-on-this-part-of-the-project/495030/3 "2022-02-06T22:11:12Z")

</div>

I like the Level streaming approach, but I would want to make the map generate as long as the player decides to move in a certain direction, so that leads me to a copy and paste of a “tile”/“floor” or something like that.

My question number 1 was more about efficiency than anything else but, thinking about it, collision boxes lead me to a problem where, if the player decides to enter and leave the box multiple times, the tile doesn’t need to get generated again.

This whole logic, gets pretty hard on my beginner brain and I can’t find all of the needed commands haha

---

<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 7, 2022, 7:39am UTC](https://forums.unrealengine.com/t/started-learning-ue4-can-i-get-a-bit-of-help-on-this-part-of-the-project/495030/4 "2022-02-07T07:39:40Z")

</div>

Yes, it’s a toughie.

The maze you see in this demo uses that technique:

https://store.steampowered.com/widget/1414480

First thing to learn about I guess is the DoOnce node 🙂
