Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: misterjuly on March 18, 2021, 03:00:50 PM

Title: Super Mario Galaxy Launch star mechanic
Post 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
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: djaydino on March 18, 2021, 09:00:46 PM
Hi.
maybe with some tweens or some spline asset
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: misterjuly on March 18, 2021, 10:38:28 PM
Could you potentially give more detail? :) Thanks!
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: djaydino on March 19, 2021, 03:24:05 PM
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'
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: misterjuly on March 22, 2021, 07:24:53 AM
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
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: djaydino on March 22, 2021, 09:20:44 AM
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

Title: Re: Super Mario Galaxy Launch star mechanic
Post by: misterjuly on March 22, 2021, 11:46:04 PM
Ok thanks. I'll check them out and let you know if I have questions.

John Bassi
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: misterjuly on March 23, 2021, 10:03:30 AM
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
Title: Re: Super Mario Galaxy Launch star mechanic
Post by: Broken Stylus on March 23, 2021, 10:10:05 AM
If it's purely cinematic there's a bunch of plugins that can handle camera work along splines.