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"

Why Aren't My Lanes Switching Properly?

I am following this tutorial here.


Below are pictures of my work.

alt text This is my tile that repeats itself to make the track endless. My problem is that whenever I switch lanes in game, it places me at the location of where the first was instead of the current track.

alt text

These are the locations of each spot on the tile where I want the character to move to. Before I noticed the problem where it would take me to the first tile, it would also move me to the left said of the track, meaning off to the left of Lane 0.

alt text

These are the variable representing the lanes in the ThirdPersonCharacter Blueprint. The Array Locations are the same as the Lane Locations I marked above.

alt text

This is the code I followed from the tutorial that switches the lanes.

Can anyone see what I did wrong? Or even an a better way to do it? All help is appreciated!

Product Version: UE 4.19
tile.png (579.1 kB)
lanevariables.png (101.3 kB)
more ▼

asked Jun 12 '18 at 03:13 AM in Blueprint Scripting

avatar image

13 3 4 8

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

1 answer: sort voted first

I suspectthe Timeline doesnt Finish before you Start it again upon hitting the next Tile, and therefore the Lane Index never gets updated

more ▼

answered Jun 12 '18 at 05:41 AM

avatar image

3.8k 18 24 21

avatar image zeltparker Jun 12 '18 at 06:22 AM

@mightyenigma The timeline only last .10. I could try changing it but I feel like it is long enough for it

avatar image zeltparker Jun 12 '18 at 06:30 AM

@mightyenigma I watched my event graph fire off to ensure it was doing it in time in order to fire off the SetActorLocation node.Everything worked fine it that. So I'm wondering if it's some sort of error in where it sets the actor.

avatar image zeltparker Jun 12 '18 at 06:39 AM

alt text This is his timeline in the tutorial. It's small but when I zoom, I can see it well.

alt text This is my timeline.

virtustimeline.png (85.5 kB)
mytimeline.png (40.6 kB)
avatar image mightyenigma Jun 12 '18 at 05:47 PM

So can you confirm that Lane Index is getting set by the Finish execution pin from the Timeline? My suspicion is that Lane Index does not get set, so it is always zero.

avatar image zeltparker Jun 12 '18 at 09:55 PM

Uploading a clip of it firing and finishing on Youtube right now so I can post the link.

avatar image zeltparker Jun 12 '18 at 09:58 PM

https://youtu.be/brH3KzoTdhI I'm hoping I am showing you what you meant you wanted to see.

avatar image mightyenigma Jun 13 '18 at 05:42 PM

Yep, that proves well that it is NOT the problem I thought it was. It all looks like it should work. Maybe try ticking the Use Last Keyframe checkbox on the timeline.

avatar image zeltparker Jun 14 '18 at 06:13 AM

That doesn't change anything. I may just have to start playing with everything on it.

avatar image mightyenigma Jun 15 '18 at 06:46 PM

Sorry I couldn't figure it out!

(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