I trying to do the endless runner tutorial and I'm having an issue spawning multiple floor tiles. Please help!

Here is the For loop to spawn multiple tiles but it doesn’t work

Can you please show us the function add floor tile as well?

That should work, but I will assume that the collision fails and that only every other is actually spawned. To fix this simply change the spawn actor node to ignore collision. It is one of the options there. If that is not the case show us what it looks like and why it is not what you expect.

So I changed it to ignore the collision like you said but it still only spawns on tile

No, it spawns all the tiles, it just spawns them at the same place. So your transform that you use to attach the next tile is wrong. It is set to the origin with no rotation. You have to make it relative to the actor it is attached to.

Can you show me exactly how to fix that?

Can you me exactly what I have to change to prevent from spawning on top of each other?

No, because this is a very simple problem if you understand the problem. You will never be able to do anything yourself unless you learn. As such I will not show you as it is very easy once you understand what you are trying to do.

What I will do, however, is to explain what you can do to acquire a transform from a specific location. You can do that by adding something invisible like a billboard that you hide and set somewhere in your level. Then you just use the transform of that billboard and you have a customized transform.

I’m not asking for you to give me the answer but to guide me. I’ve been stuck on this for hours, I would just like to get pass this

I have been stuck with this issue I have for weeks. A few hours is nothing in the world of programming. Anyways, I did help you. Sit down and write down in WORDS with drawings how the system should work. What is the transform in your drawing? Go through it step by step logically and dont think about the code. Maybe explain it to someone. Make guesses and see how that would affect the result. Draw everything by hand again. If you think you found a solution, implement it and then see if it worked. If not, find out why. Try to explain to yourself or someone else each step in the code and see where the logic breaks down.

One issue might be the the version of the engine I’m using

Nope. The problem is with your transform inside your segment actor class.

I’m sorry that I’m having a hard time understanding what you are saying but you are talking to a non-programmer here. I’m trying to understand what you are saying

I am saying that the problem is with the transform you are using.

Does it have to deal with “Get Attach Transform”?