Hello, I have been working with the program for a while now, and I'm totally catching on to this rather quickly
![](/ubbthreads/images/graemlins/laugh.gif)
I've been trying to work on this movement code specifically, and code it in different parts. First, I just want the entity to move to the spot the mouse is clicked in the area (basically teleporting there, not really running along a path yet). this is what I have so far, but it's not really working right. the entity doesn't go to the same spot you click on -- it ports to various places on the map whenever you click the left button:
Code:
if(mouse_left == 1) // mouse_left = Left mouse button
{
heru.x = mouse_cursor.x;
heru.y = mouse_cursor.y;
heru.z = mouse_cursor.z;
}
Now when I get ready to implement the A* pathfinding script, would I call a function from within here?