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"

Spawn tile at attach point

Hello, i'am following the endless runner with blueprints tutorial and i'am stuck at the 2nd video.. at 7.22. All my tiles are spawning on top of eachoter. So somehow the spawnpoint for every next tile is not set right. I'am already trying to fix it for like 1,5 hour. But i still can't find the problem.. annyone who has a fix? thnx!

Product Version: UE 4.10
Tags:
more ▼

asked Nov 22 '15 at 09:21 PM in Blueprint Scripting

avatar image

iProspartan117
22 5 5 11

avatar image iProspartan117 Nov 22 '15 at 09:23 PM

They do not really spawn on top of eachother. But more like inside eachoter. So when i try to spawn 10 tiles, i only see 1.

avatar image Alderbit Nov 22 '15 at 10:34 PM

Hi iProspartan,

It's hard to know what the problem is without seeing your work, but you might double check a few things:

  • Is AttachPoint in the floor tile blueprint positioned correctly?

  • Is GetAttachTransform returning the AttachPoint's transform?

  • Is AddFloorTile updating NextSpawnPoint with the return value of GetAttachTransform?

avatar image iProspartan117 Nov 23 '15 at 08:00 PM

Hi Alderbit,

sorry for my late responce, i have been verry bussy with work. To awnser your questions:

  • the AttachPoint is positioned correctly

  • The GetAttachTransform is returning the AttachPoint's transform(but it seems that this is not working because they spawn inside of eachother.

  • AddFloorTile is updating NextSpawnPoint with the return value of GetAttachTransform

alt text

knipsel.png (899.3 kB)
1.png (282.1 kB)
2.png (342.8 kB)
avatar image dstory Sep 17 '16 at 08:15 PM

I have the same problem. Everything is correct as far as scripting but the tiles still spawn within each other/

(comments are locked)
10|2000 characters needed characters left

3 answers: sort voted first

In the AddFloorTile function, you accidentally made NextSpawnPoint a local variable. Recreate it as a class variable and everything should work.

more ▼

answered Nov 24 '15 at 12:13 AM

avatar image

Alderbit
866 36 14 59

avatar image iProspartan117 Nov 25 '15 at 11:46 AM

Thankyou!! solved my problem!

(comments are locked)
10|2000 characters needed characters left

Could you please help me I don't know how to recreate it as a class variable

more ▼

answered Jul 14 '17 at 05:00 PM

avatar image

NikanM
1

avatar image iProspartan117 Jul 17 '17 at 07:34 PM

Check this link, i'm sure you can find the information there.. as of now this has been such a long time ago for me that i don't remember the exact steps i took to fix the issue.

https://wiki.unrealengine.com/Blueprint_Essentials_-_4_-_Object_%26_Class_Variables

avatar image iProspartan117 Jul 17 '17 at 07:38 PM

Excuse me, by looking at the screenshots i remembered. There are two types of variables in Unreal. Local variables and class variables.

if you look at my initial attachment 2.npg, in the "My blueprint" section on the left, you see that NextSpawnPoint is located under the Local variables tab. You have to put it under the "variables" tab, where you see the defualtSceneRoot component and NewVar_0.

Hope this helps.

(comments are locked)
10|2000 characters needed characters left

I cam across another issue where the spawned objects had incorrect scale. This is the fix I found: alt text

more ▼

answered Jun 20 '18 at 01:00 PM

avatar image

micwanyoike
1 1

(comments are locked)
10|2000 characters needed characters left
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