Answer the question
In order to leave comments, you need to log in
How to track the second touch after picking up an object?
I can’t understand, in games it is often found that you click on a character, then you click somewhere else and he does something.
I need the same, but I will have several characters subordinate to the player. That is, the player clicks on any character, then clicks somewhere, and from where he clicked, a certain action will occur.
I've been scratching my head over this for 5 days already. Seriously. I can't find anything about it on the internet! I tried to write and do something myself, but nothing comes out. The last thing I stopped at was reycasts. But the problem is tracking this "second click", which, as it seems to me, is impossible to track.
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question