playMaker

Author Topic: Curvy & PM: Strafe Player Model Left or Right on spline (rail)  (Read 5954 times)

dxpsite

  • Playmaker Newbie
  • *
  • Posts: 10
Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« on: September 24, 2013, 01:27:00 AM »
The player model move on the spline created with a Curvy.
Requires: ability strafe player model to the left or right without interrupting moving on the spline (rail). What method can be done using actions PM (and Curvy?)?
Thank you for your attention.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #1 on: September 24, 2013, 05:48:31 AM »
Hi,

 you need to abstract the spline movements.

 have dummy empty game objects that are on both rails, both animated at the same time ( in synch).

then your player will "follow" either of these dummies. which means you can interpolate between the two tails.

Does that make sense?

bye,

Jean

dxpsite

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #2 on: September 24, 2013, 06:18:21 AM »
no, no, no)))
This is not something that was trying to say)
see please this first pic:

As center I have Curvy Spline. Else Curvy SplineLeft (left side) and Curvy SplineRight (right side)

and some actions...


a player does not move to left or right.. maybe doing something wrong(





jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #3 on: September 24, 2013, 06:26:44 AM »
Priviet,

Have you contacted curvy author, maybe he knows the trick, even if it's not in playmaker, he may give you hints on how to do it.

 If not, get back to me.

But, my solution is still valid in your case, that's exactly what I pictures, you are trying to do EndlessRoad type of game right?


bye,

dxpsite

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #4 on: September 24, 2013, 07:01:15 AM »
Yep, like Endless Run but with another conception)
2author of this asset - Curvy not need talking - wanna be doing this in Playmaker only - for my learning & understanding of visual coding)
So, how may I change curve line where placed Player controller in realtime? Maybe not with Curvy asset.. it so interesting task) Yesterday was test with Add Force, Translate, Transform - and got lags)))
Because Runner on plane or shape not beautiful.. Road based on splines looks so great!)
Sry for my bad English..
« Last Edit: September 24, 2013, 07:06:52 AM by dxpsite »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #5 on: September 25, 2013, 02:09:05 AM »
Hi,

 have you tried "set position" quit simply? you can simply adjust the x axis value ( if that's the axis that changes pathes)

bye,

 Jean

Jake

  • Junior Playmaker
  • **
  • Posts: 61
    • Fluffy Underware
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #6 on: September 25, 2013, 04:19:18 AM »
Hi,

don't hesitate to ask the developer of Curvy, he's a nice guy  ;)

First you should consider using the "Curvy Move Along Spline" action, it's more versatile and offers more options. Though "Align to Spline" works as well, it's more suited for static placement.

If I understand you right you want to offset the object to the left or right from it's position on the spline. So after you positioned the object just use the Translate action to shift it along it's own x-axis (Space=Self). This should do the trick.

Jake

PS: I don't watch every forum every day, so the fastest way to get help is to ask in our dedicated support forum or by mail.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #7 on: September 26, 2013, 01:38:42 AM »
Hi Jake

 I think he has two splines actually and wants to jump from one to the other.

Bye,

 Jean

dxpsite

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #8 on: September 26, 2013, 04:09:58 AM »
Hi,

 have you tried "set position" quit simply? you can simply adjust the x axis value ( if that's the axis that changes pathes)


Jean & Jake!

Very big thanks for solutions, but i use "Translate" action because "Set Position" activate free fly mode on invisible spline)))) So.. deleted 2 unnecessary splines.. Character's control based only one spline with "Translate" actions) I's good!
However, the movement is not smooth .. I will try to come up with something)

2 Jake: big thank for great and useful asset - Curvy)

Wanna see result? Okay.. link to webplayer prototype demo here.
« Last Edit: September 26, 2013, 04:45:59 AM by dxpsite »

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #9 on: September 26, 2013, 06:55:29 AM »
Hi,

 Cool. I would however have the camera following the central path, so that the effect of  moving the spaceship left and right is visually clear, but you might have planned around this kind of movement anyway. In endlessroad, the camera doesn't move sideways with the car.

bye,

 Jean

dxpsite

  • Playmaker Newbie
  • *
  • Posts: 10
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #10 on: September 26, 2013, 01:55:06 PM »
Hi,

 Cool. I would however have the camera following the central path, so that the effect of  moving the spaceship left and right is visually clear, but you might have planned around this kind of movement anyway. In endlessroad, the camera doesn't move sideways with the car.

bye,

 Jean
How this fix? maybe make smooth with animations?

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: Curvy & PM: Strafe Player Model Left or Right on spline (rail)
« Reply #11 on: September 27, 2013, 01:15:40 AM »
Hi,

 two ways:

 your camera is animating itself to the path using a dummy gameobject, which essentially remove the link to the car and you can implement then things like car speeding up or slowing down. You simply match or not the speed of the camera dummy with the car. The camera dummy would always be on the central path.

 the other way is to have a smooth camera follow system, yes, which means the user is clearly and nicely aware of the movements.

the choise between the two is really dicatated by what game play and visual effect you want.

bye,

 Jean