playMaker

Author Topic: Super Mario Galaxy Launch star mechanic  (Read 1082 times)

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Super Mario Galaxy Launch star mechanic
« 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Super Mario Galaxy Launch star mechanic
« Reply #1 on: March 18, 2021, 09:00:46 PM »
Hi.
maybe with some tweens or some spline asset

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Super Mario Galaxy Launch star mechanic
« Reply #2 on: March 18, 2021, 10:38:28 PM »
Could you potentially give more detail? :) Thanks!

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Super Mario Galaxy Launch star mechanic
« Reply #3 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'

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Super Mario Galaxy Launch star mechanic
« Reply #4 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

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7615
    • jinxtergames
Re: Super Mario Galaxy Launch star mechanic
« Reply #5 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


misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Super Mario Galaxy Launch star mechanic
« Reply #6 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

misterjuly

  • Sr. Member
  • ****
  • Posts: 334
Re: Super Mario Galaxy Launch star mechanic
« Reply #7 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

Broken Stylus

  • Beta Group
  • Hero Member
  • *
  • Posts: 772
Re: Super Mario Galaxy Launch star mechanic
« Reply #8 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.