Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started by: misterjuly on March 18, 2021, 03:00:50 PM
-
Hello,
I want to have a launch star system, like in super Mario Galaxy where it shoots you through the air in a predetermined path to somewhere else. How would I go about doing this? Thanks!
John Bassi
-
Hi.
maybe with some tweens or some spline asset
-
Could you potentially give more detail? :) Thanks!
-
Hi.
With tween you could make a array with a bunch of positions and and do move toward.
and when position reach move to the next.
For Spline there are several assets on the asset store if you search 'spline'
-
So I'm trying to go the tweeting route and I have an issue. When my character moves through the air it is very jittery. How do I avoid this? Also, I'm not using arrays, just a bunch of move towards actions. If using arrays is crucial, could you give more detail on how to use them, as I haven't messed around with them at all.
Thanks!
John Bassi
-
Hi on the tween there should be an update type (it probably has t obe set as fixed update)
for the array, it would just be some vector 3 values, or gameobject.
then connect with move toward.
state 1
Array Get Next (get the object or vector 3)
and set a transition next to state 2
and set a transition to done as well (when looped thru the array)
state 2
Move Towards (toward the object or vector 3 from the array)
or use Tween Position with the object or vector 3
Transition Finish Event back to state 1
Here are some videos for build in array and Array Maker Version
you can find more on youtube
-
Ok thanks. I'll check them out and let you know if I have questions.
John Bassi
-
Got it to work. Didn't use arrays, just a bunch of different positions on the map. Have to mess around with arrays later. Thanks again for your help!
John Bassi
-
If it's purely cinematic there's a bunch of plugins that can handle camera work along splines.