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"

Endless runner obstacles destroyed in front of me

So I am making the endless runner from the tutorial on Youtube, and I decided to add my own custom obstacles which would be a pipe that spawns across the floor tile that the player has to jump over. At first the pipes spawn in corrcetly, but after 4-5 tiles they begin to be destroyed in front of the player as they approach them. They then begin to spawn way far off in the distance ahead of the floor tiles.

This is the BP for the spawnBlocker function in my BP_FloorTile BP class ans this function spawns the blockers. It randomly will select either a barrel(Blocker) or the pipe to spawn. alt text This is the event graph for the BP FloorTile Classalt text This is the run game mode BP that spawns in and the new attach points for the floor tilesalt text This is an example of how the obstacles begin to spawn way far off in the distance after they are destroyed in front of the player alt text

Product Version: UE 4.21
Tags:
more ▼

asked Feb 12 '19 at 04:30 PM in Blueprint Scripting

avatar image

BlueLobster7
1 1 1

avatar image IndieGameCove Feb 13 '19 at 07:24 AM

Are you using a delay to destroy stuff? I would just have a volume behind the player to destroy stuff on overlap.

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

0 answers: sort voted first
Be the first one to answer this question
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