Hey Guys! Thanks for all the help on my last problem!
Ive got most of the stuff worked out with the mouse clicking thing.
Now there is one last problem, when i click to move the model, it moves twards the direction but it jerks left and right, and when it reaches its destination it still jerks.
Here is the moving code.
UpdateMovement:
GuyPos2X = Object Screen X(1)
GuyPos2Z = -Object Screen Y(1)
if mouseclick() = 1
GuyDestX = MouseX()
GuyDestZ = -MouseY()
GuyWalk = 1
endif
if GuyWalk = 1
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
I hope some one can Help! Thanx!
Regards,
Rajavidya SilverKnight