K
Karlabos
Guest
So I have an object which is running towards the player (another object called player, that is), with a certain speed.
And I wish to make it so that this object is able to be moved with the mouse. But I don't want it to teleport to wherever the mouse is. (like in just x=mouse_x; y=mouse_y; stuff)
I want it so that whenever the mouse is moved a bit upwards then the object is also moved a little upwards, but with respect to the position it already was on the previous step and so on...
How can I do it?
And I wish to make it so that this object is able to be moved with the mouse. But I don't want it to teleport to wherever the mouse is. (like in just x=mouse_x; y=mouse_y; stuff)
I want it so that whenever the mouse is moved a bit upwards then the object is also moved a little upwards, but with respect to the position it already was on the previous step and so on...
How can I do it?