#why tf does it only teleport the player

1 messages · Page 1 of 1 (latest)

nocturne kestrel
#

What do you mean?

weary minnow
#

when i run the enumerator it doesnt teleport the player everytime it runs

#

only in random chances and i have no clue why

nocturne kestrel
#

Does the fadeout happen?

weary minnow
#

yes

timber trout
#

How do you set target location?

weary minnow
#

but for some reason the animator loses its preference during the coroutine

weary minnow
nocturne kestrel
#

The animator shouldn't really matter for the issue you are having, since the coroutine will run whether or not the animation plays correctly

weary minnow
#

yeah i know its just weird

#

but why do i only get teleported every so often

nocturne kestrel
#

Are you disabling the FadeController game object from somewhere else?

weary minnow
#

no

timber trout
#

Have you verified that the problem is in coroutine not running to the end? This is easily archieved with some Debug.log-messages

weary minnow
#

well the fade in animation is playing so ye

nocturne kestrel
#

It can really only be that something else is modifying your player position or your target location is incorrect

#

Do you have multiple FadeController game objects in your scene?

weary minnow
#

no

timber trout
#

How do you move the player?

#

Like do you use other variables to set player position, or just directly translate

weary minnow
#

i use character controller if that helps idk

nocturne kestrel
#

And how are you testing this? You click, it fades, you teleport, then you walk away, click, it fades, but doesn't teleport you?

weary minnow
#

that worked :D