Player needs to face towards an object

famekraftsfamekrafts Member, BASIC Posts: 834
How to make player face towards an object say a cliff

When it is spawned it needs to be facing a cliff, if on the right side of screen then it will move towards it from right, if left the character animation needs to be flipped.

The problem is that the cliff can be anywhere on screen, so I cannot give a particular x and y value.

So how do I do it?

Comments

Sign In or Register to comment.