x


Anyone have a 'click to move here' character controller script?

Hoping to save myself some time: I'm looking for a script that works with the Locomotion system, probably a 'motor', that will find the point on the ground where the user has clicked the mouse, and tell the character to go there. Anyone know of such a thing?

more ▼

asked Nov 04 '10 at 11:39 PM

DaveA gravatar image

DaveA
26.5k 151 171 256

Your stated requirement is too generic. Click... on a tagged floor colliders? On terrain? Also, how should they moved -- A-Star style? Directly? Physically? With easing? It's ultimately a creative decision that will need to be tweaked, you won't find an out-of-the-box solution.

Nov 05 '10 at 12:19 AM Max Kaufmann

I would start simple: click on an point (preferably on a horizontal-ish place) and it LERP's there at a given speed. Can add easing and such later. Using Locomotion, it would use the walk animation, turn if needed first, then idle when destination is reached. I've been mashing together some stuff I found around and at the script wiki, nothing working well.

Nov 05 '10 at 12:29 AM DaveA

Ok, I worked it out. May post to script wiki.

Nov 05 '10 at 12:53 AM DaveA

And put the link here as well :)

Nov 05 '10 at 06:02 AM Herman Tulleken
(comments are locked)
10|3000 characters needed characters left

1 answer: sort voted first
more ▼

answered Nov 05 '10 at 08:00 PM

DaveA gravatar image

DaveA
26.5k 151 171 256

Thanks, needed that

Jan 19 '11 at 05:10 PM Art 1
(comments are locked)
10|3000 characters needed characters left
Your answer
toggle preview:

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Topics:

x3328
x1044
x520
x225
x98

asked: Nov 04 '10 at 11:39 PM

Seen: 6002 times

Last Updated: Nov 04 '10 at 11:39 PM