Hey dudes!
I have been having trouble with MouseClick()! Im trying to get it so when i click the mouse button a charcter moves to the designated spot, but instead of being able to let go of the button and have it walk to the location, i have to hold down the mouse button or he will stop. Here is the code.
if MouseClick() = 1
GuyPos2X = Object Screen X(1)
GuyPos2Z = -Object Screen Y(1)
GuyDestX = MouseX()
GuyDestZ = -MouseY()
if GuyDestX > GuyPos2X
GuyPosX = GuyPosX + 1
endif
if GuyDestX < GuyPos2X
GuyPosX = GuyPosX - 1
endif
if GuyDestZ > GuyPos2Z
GuyPosZ = GuyPosZ + 1
endif
if GuyDestZ < GuyPos2Z
GuyPosZ = GuyPosZ - 1
endif
endif
Regards,
Rajavidya SilverKnight