The Actor Spawn at player start because of the timeline, how do i fix this:

HEADS UP: im new to unreal and game development in general, i wanted to make a game for my college project

So i followed these tutorials from unreal to make an endless runner game:

Long Story short: the actor i want to spawn as an obstacle has a timeline attached to it to make it move up and down.

The problem is instead of spawning them at the location i want they spawn at the payer start for some reason.

I know the issue is the timeline location and the logic i am using with vectors, because when i disconnect the timeline from the actor blueprint (they now dont move) the spawn at the correct place.
here are some editor screen shots to give you an idea:

The Actor blueprint of the wall obstacle: (timeline part connected)
this makes the obstacle move to the player start instead of where i spawn them from another blueprint

Here is the ss of the blueprint where the timeline thing has been disconnected, now the actors spawn where i want them to but they dont move since the timeline is disconnected

Here is the yellow wall obstacle in question, here i spawned them using the CONSTRUCTION script instead of Event graph (the tracks generate before actual games start instead of spawning during the game), this has the timeline CONNECTED.

here is the ss of the obstacle how i want them to spawn(these are spawned during the game and spawn correctly) but they dont move since the timeline is disconnected.

Here is what happens when i connect the timeline and generate the tracks during the game using the event graph instead of spawning them before the actually game starts using construction script, like i said they spawn at the player start instead of the desired location (but they move there according to the timeline)

Sooo, how do i make them spawn where i want them on the tracks generated DURING the game, since its and endless runner game i cant pre generate infinite tracks, so help.

Hi!

I just looked at your issue and tried to recreate it. While I was unable to get the exact same problem, I did manage to make it work using a different approach: Offset instead of position.

This is the relevant BP part inside the “yellow wall” BP:

http://i.imgur.com/5Q8HUQB.png

And inside the timeline a simple float that goes up and down:

http://i.imgur.com/EPUPgqN.png

Because we are just Offseting the Location instead of setting it,you don’t need to worry about the original location or the X and Y axis, just offset Z and that’s it!

Hope this helps.

Oh, it’s called Z offset because I named it that way. Just create a Float track in the timeline (the F+ button) and you’ll get a pin with whatever name you give to the track.

With Offset you do not need a Vector track, but you could use one if you want to.

this seems like the solution i need, how do i get the timeline to show offset, for me instead of that pin it says OBSLocation; srry if this may sound stupid i am new to unreal :stuck_out_tongue:

thanks that worked for me!
i didnt knew we could just offset an actor from its original location, such a handy function :stuck_out_tongue:
thanks again for solving my problem :smiley: