- Home /
iTween : change path in current point
Hi , i want to move player on path (more than one path) i use iTween to do this but when i trying to change path its start to move from start point of other path , but i want to player continue way from current point in other path , how can i do this ? thanks
This path of yours is a set of four straight lines?
Answer by OBT · Nov 05, 2012 at 08:51 PM
One way to do it would be to use 4 different invisible game objects to follow each path at the same speed.when the player switch path, move it to the next path gameobject position and parent them and un-parent the player from the gameobject on the previous path.
Answer by arinckokturk · Nov 06, 2012 at 01:32 PM
hmm, it sounds reasonable. i will try it, thanks OBT.
by the way correct me if i'm wrong, it should be really easy to change the active "path" during moving action by using any related movement function such as MoveTo or something else...
Answer by tylertempdev · Feb 06, 2020 at 03:23 PM
A quick think, not verified:
record your current path's using percent (
PathLength
)change path, and use
PutOnPath
with that percentmay need
MoveUpdate
rather thanMoveTo
Your answer
Follow this Question
Related Questions
draw a path in game with touch and move player on it 0 Answers
Push an object along a path? 2 Answers
itween Error - InvalidCastException: 1 Answer
Camera switching with iTween Touch 1 Answer
iTween Path easing in and out 0 Answers