|
Post by Luigi on May 10, 2017 22:15:01 GMT
Hello, here is my question: when I try to move the camera to a vector2 position, i get this effect (the camera is influenced by targets nearby depending on how much time i let between two teleports) video herethe code running when the character is on the door and i press the key is character.transform.position=target.transform.position; //movse
ProCamera2D.Instance.MoveCameraInstantlyToPosition(target.transform.position);
and the targets are the DoorTeleport objects below: the teleport targets are correct, like DoorTeleport 1F1L pointing to DoorTeleport 1F0L ... is there a way to stop all targets until the camera is moved?
|
|
|
Post by Luís Pedro Fonseca on May 11, 2017 9:12:49 GMT
Hi Luigi,
If you want to disable the TriggerInfluence's you can simply disable their GameObjects...
I'm sorry but I'm not uderstanding what you're trying to achieve. Can you please explain further?
|
|
|
Post by Luigi on May 11, 2017 14:06:33 GMT
Thankyou Luis, just disabling the targets worked for me. My objective was to move the camera instantly from p1 to p2 and then have the target effect, but as you see in the video the camera is affected by not targetted points before, later shifts to the expected influecing target.
|
|
|
Post by Luís Pedro Fonseca on May 11, 2017 14:07:24 GMT
OK, glad it's sorted out. Cheers!
|
|