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"

randomly generated floor spawns 2 overlapping floor

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

alt text

Product Version: UE 4.12
Tags:
addfloortile.jpg (351.1 kB)
more ▼

asked Sep 29 '16 at 05:14 PM in Blueprint Scripting

avatar image

db18
1 1

avatar image mamoniem Sep 29 '16 at 05:34 PM

Can you show the for loop where you call the "AddFloorTile" ?

-m

avatar image db18 Sep 29 '16 at 06:01 PM

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. alt text

alt text

alt text

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

1 answer: sort voted first

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:

alt text

-m

more ▼

answered Sep 29 '16 at 06:48 PM

avatar image

mamoniem
1.2k 33 25 66

avatar image db18 Sep 29 '16 at 06:53 PM

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

avatar image mamoniem Sep 29 '16 at 07:04 PM

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

-m

(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