Jump to content
Search In
  • More options...
Find results that contain...
Find results in...

Movement and animation (with mouse click) - need a bit help


Recommended Posts



i have a simple question: I want to move a model (with GoToPoint)

if i press the left mouse button, and play an animation while the model moves.

I did:



if (window:MouseHit(Key.LButton)) then



-- Target position (in place ATM)

local targetpos = Vec3(0,0,17)

-- Move model


-- Animate model

local t = Time:GetCurrent()


local playerpos = player:GetPosition(true)





My results moves the object, but the animation isn´t played well

(only if i press the mouse button again), and any correction did not work.
Link to post

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Facebook Twitter Youtube Github Steam
  • Create New...