#move toward variable use

2 messages · Page 1 of 1 (latest)

surreal heath
#

how do you use variables in the move toward call? I am trying to make the bomb move from the player to the mouse position

white mango
#

move_toward() on a Vector2 takes two arguments: first being the vector to move toward, and the second being the "delta" (how much you want it to move toward). that's likely what the error is about (it should say it's missing an argument or something along those lines at the bottom of the script editor)