#why tf does it only teleport the player
1 messages · Page 1 of 1 (latest)
when i run the enumerator it doesnt teleport the player everytime it runs
only in random chances and i have no clue why
Does the fadeout happen?
yes
How do you set target location?
but for some reason the animator loses its preference during the coroutine
its an empty object in the scene that i referenced
The animator shouldn't really matter for the issue you are having, since the coroutine will run whether or not the animation plays correctly
Are you disabling the FadeController game object from somewhere else?
no
Have you verified that the problem is in coroutine not running to the end? This is easily archieved with some Debug.log-messages
well the fade in animation is playing so ye
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?
no
How do you move the player?
Like do you use other variables to set player position, or just directly translate
i use character controller if that helps idk
And how are you testing this? You click, it fades, you teleport, then you walk away, click, it fades, but doesn't teleport you?
I'm guessing this is the issue you are having: https://answers.unity.com/questions/1614287/teleporting-character-issue-with-transformposition.html
that worked :D