x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

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

alt text

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

Product Version: UE 4.10
Tags:
screenshot (16).png (402.1 kB)
more ▼

asked Sep 17 '16 at 06:37 PM in Blueprint Scripting

avatar image

dstory
32 1 8 11

avatar image NoobsDeSroobs Sep 17 '16 at 06:45 PM

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

avatar image dstory Sep 17 '16 at 06:47 PM

alt text

screenshot (17).png (506.1 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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.

more ▼

answered Sep 17 '16 at 06:54 PM

avatar image

NoobsDeSroobs
2.7k 107 35 180

avatar image dstory Sep 17 '16 at 07:04 PM

alt text

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

screenshot (19).png (963.3 kB)
avatar image NoobsDeSroobs Sep 17 '16 at 07:08 PM

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.

avatar image dstory Sep 17 '16 at 07:10 PM

Can you show me exactly how to fix that?

avatar image NoobsDeSroobs Sep 17 '16 at 07:21 PM

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.

avatar image dstory Sep 17 '16 at 07:44 PM

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

avatar image NoobsDeSroobs Sep 17 '16 at 08:25 PM

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.

avatar image dstory Sep 17 '16 at 08:49 PM

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

avatar image NoobsDeSroobs Sep 17 '16 at 08:53 PM

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

avatar image dstory Sep 17 '16 at 08:56 PM

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

avatar image NoobsDeSroobs Sep 17 '16 at 11:04 PM

I am saying that the problem is with the transform you are using. https://answers.unrealengine.com/storage/temp/107455-screenshot+%2817%29.png

avatar image dstory Sep 17 '16 at 07:19 PM

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

avatar image dstory Sep 17 '16 at 11:19 PM

Does it have to deal with "Get Attach Transform"?

(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question