is there a way you can show show me how to do a nightcrawler style teleportation, like what you see in the x-men games. thanks in advance.
2 Answers
2That wouldn’t be too hard. All you need is a target location and a particle effect.
Function Update() {
if(Input.GetKeyDown(KeyCode.AhteverKeyYouWant)) {
transform.position = targetLocation
Instantiate(particleFX, transform.position, Quternion.identity)
Instantiate(particleFX, targetLocation, Quternion.identity)
}
}
You could use Raycasting to get the target location from the mouse cursor, or specify it any other way.
What is raycasting
http://tinyurl.com/4xhxl8l Also, don't post comments as answers.
– testure