How do you make objects point at last touch?


#1

I’ve been making games, and all, but on some recent games I have been wondering how to make objects point at the position of the finger. Does anyone know how to do this? PLZ REPLY!!!


#2

It’s a bit long but it gets the job done


#3

I’ll also add that the link in my post, referenced by @Fishyguitars, is an example project. Check it out and feel free to ask any questions.


#4

Ok, thanks @ThinBuffalo and @Fishyguitars!! :sunglasses:


#5

WOW! That’s really useful!!! THX SOOOO MUCH!!! :+1::+1::+1::+1::+1::+1::+1::+1::+1::+1::+1::+1::+1::+1:


#6

Use arctan

Knew this would come in handy, just change the values, and make one of them the last touch x, and the other last touch y

Look at the topic for more info


#7

Ok. I will try that as well, @BlastFusion. :grinning: