Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: indeed on April 24, 2015, 03:14:01 PM

Title: How to have an object transition from following one object to another?
Post by: indeed on April 24, 2015, 03:14:01 PM
If you have two animated objects, say two cubes, is it possible to have a third object, a sphere, follow one of their animations and then smoothly transition into following the other? So it starts following CubeA, and then when the sphere is clicked, it transitions to follow the motion/position of CubeB?
Title: Re: How to have an object transition from following one object to another?
Post by: sebaslive on April 24, 2015, 05:16:42 PM
Yep, try the smooth follow action.
Title: Re: How to have an object transition from following one object to another?
Post by: indeed on April 24, 2015, 05:35:54 PM
I tried Smooth follow, but I didn't understand how to use that to do a transition from one object to another.
Title: Re: How to have an object transition from following one object to another?
Post by: sebaslive on April 24, 2015, 05:42:20 PM
you have a state that waits for the player to select the object with the smooth follow action in that state, then when the player clicks the object it goes to the next state which has the same smooth follow action but with a new target B
Title: Re: How to have an object transition from following one object to another?
Post by: indeed on April 24, 2015, 05:46:15 PM
Hmm, sorry if I'm missing something obvious. When I do this, my object just immediately jumps to the location of the second target when it is clicked.
Title: Re: How to have an object transition from following one object to another?
Post by: sebaslive on April 24, 2015, 05:55:08 PM
Oh! Then something a bit more complex would be to use the advanced lerp action found in the ecosystem. That should definitely work.
Title: Re: How to have an object transition from following one object to another?
Post by: wheretheidivides on April 24, 2015, 08:44:55 PM
If you can't figure it out, try this.  Camera path animator on the asset store is really cool.  You can tons of cool things with little work.  I use it an am blown away.