- Home /
onmousedown on object teleport
im look to see how i would a kind of teleport system for my game. basically if my player walks up to a ladder and i click on the ladder it will teleport the player to a certain spot. i already know how to do this with triggers im curious if there is a way to do this with the OnMousDown or something along those lines
Comment
Answer by bubzy · Sep 20, 2015 at 09:10 PM
shoot a ray on mouseclick
check object hit. if it's a ladder check the distance
if the distance is close enough, teleport the player.
Your answer
Follow this Question
Related Questions
Mouse Click Teleportation with 2.5d game 0 Answers
Push object in direction of camera 0 Answers
How to access objects attached to other objects 1 Answer
how to scale the transport? 1 Answer