How can you make another object to move to another?

Original Title: How do you make an object move to the exact spot of another object while it’s moving?

No project link as it’s not out yet,
I originally was using ‘Move Forward objectX Pos’ and ‘Change Y by objectY Pos’ yet it kept moving past the object while it was moving. How do I fix it so it’ll move towards the object

6 Likes

If I understand right, you want an object to be at the same place as another object while it’s moving?
If that’s it, use a when game is playing
set position
X:That object X position
Y: That object Y position

4 Likes

if you instead mean to move towards another object, use the following code:

When Game is Playing
  Move X by: (Object X Position - Self X Position) / 5
  Move Y by: (Object Y Position - Self Y Position) / 5
End
5 Likes

Thank you so much for the help as it’s worked!

6 Likes

no problem! you can always change the divide by 5 value to make the character move faster or slower:)

6 Likes

@Awesome_E clive?

2 Likes