Entity follow another?


(Oli) #21

oh rly? cool and what does “n” means?


(Jacob Albano) #22

In programming and mathematics, n is a generic name for a given number. It can mean anything.

x = entityToFollow.x;
y = entityToFollow.y;

(Oli) #23

ok thank you for that:)


(Zouhair Elamrani Abou Elassad) #24

Could you please provide the code you used to follow to entity, i’m currently trying to follow the mouse but nothing works so far !


(Jacob Albano) #25

(Zouhair Elamrani Abou Elassad) #26

But if i did that, every time the player will be at the same position of the target not following, or am i wrong ?


(Martí Angelats i Ribera) #27

It will depend of the sysytem you use to move.


(Jacob Albano) #28

That’s what the original topic was about. If you have something else in mind, create a new thread.


(Zouhair Elamrani Abou Elassad) #29

Actually i already did, Thanks :smile: