Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

Author
Message
SilverKnight
22
Years of Service
User Offline
Joined: 21st Sep 2003
Location:
Posted: 27th Sep 2003 19:46 Edited at: 27th Sep 2003 19:48
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

Login to post a reply

Server time is: 2026-07-25 08:29:15
Your offset time is: 2026-07-25 08:29:15