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"

Office Holiday

Epic Games' offices will be on holiday from June 22nd to July 7th. During this period support will be limited. Our offices will reopen on Monday, July 8th. 

How to build a "endless runner" like course?

Hello everybody! I'm trying to build a course that spawn itself like in the "endless runner" tutorial. I was able to make it work following step by step the all thing and therefore modifying my gamemode blueprint. I'm now trying to avoid to make changes to to game mode, so I've tried to pretty much do the same thing using instead a new actor blueprint. Now, the course does appear at the beginning of the game, for the number of pieces specified in the ForLoop, but does not spawn new segments of it nor destroy the old ones while the pawn move through the trigger boxes.

I've used two different blueprints: A first one wich actually contain the mesh, the trigger and the arrow (as in the tutorial) plus this Get Attach Transform funtion alt text

and this event graph (notice the warning!) alt text

The Second blueprint is the one I've inserted in the scene wich calls this first one to work and it is composed of an AddFloor functionalt text

And its event graph (wich i belive works) alt text

Any idea about where I might be doing wrong? I belive I still have not clear enough to concept of "casting"...this might be it! XD Thanks in advance to anyone who would spend his/her own time taking a look to my graphs!

Product Version: UE 4.8
Tags:
more ▼

asked Aug 23 '15 at 03:25 PM in Using UE4

avatar image

Alfienzo
3 3 3 4

avatar image PhoenixMarket Feb 09 '19 at 08:12 AM

Yes its all about trigger boxes :) Have a look at my advance endless runner template: https://forums.unrealengine.com/unreal-engine/marketplace/1580543-endless-runner-shooter-template

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

1 answer: sort voted first

Well, the errors already say what part of the problem is:

BP_FTunnel does not inherit from GameMode

Whenever you get an error of this sort, something is seriously wrong in your code and the node will never execute correctly. In this case, you won't be able to access your tunnel actor this way. Assuming the tunnel already exists in the map at that time (whether placed in the editor or spawned by another function), you could use a GetAllActorsOfClass node to find all existing actors of type BP_FTunnel. The node returns an array containing all existing actors of the given type. Use a Branch node to verify that the array's Length is greater than 0. If this returns true (at least one tunnel was found), you'll probably want to use the Get node with index 0 to get the first tunnel found. If no tunnel was found, you'll need to spawn it first.

ReturnValue is already a BP_FTile, you don't need Cast to BP_FTile

Whenever you see a warning like this, you can leave out the Cast to XYZ node.

more ▼

answered Aug 23 '15 at 06:25 PM

avatar image

erinacea
1.8k 69 28 113

avatar image Alfienzo Aug 24 '15 at 10:44 AM

It works!!!! Thank you erinacea!! :D I've removed the unneeded Cast node on one blueprint and built, following your instructions, this other "circuit" in the other one: alt text

No more warnings, everything works! Thank you again!

erinacea.jpg (69.9 kB)
(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