playMaker

Author Topic: Question about Character controller and move towards  (Read 1413 times)

NewTo

  • Playmaker Newbie
  • *
  • Posts: 12
Question about Character controller and move towards
« on: March 15, 2020, 11:56:06 AM »
Hello there,

 I have made a prototype which satisfy me very well but I don't use a rigidbody nor a character controller.

I get the axes of my Xbox controller sticks to move and rotate. I have my 8 ways run + Aiming in any direction. I use the move towards action to move to a direction, that works very well. I also have all that stuff synchronized over PUN2 and I'm very happy with it.

But now that I will start building my first level seriously I ask myself that question, is it an error to use the move towards action and no character controller and no rigidbody?

Thanks for reading,
NewTo.


Edit : It might be important, It is like a 3D top down shooter.
Basically, a game like Dead Nation on ps4.
« Last Edit: March 15, 2020, 01:22:06 PM by NewTo »

hellzer

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Question about Character controller and move towards
« Reply #1 on: March 15, 2020, 10:49:02 PM »
It will depend if you want to walk a certain way on a slope. The character controller already have something in it that makes you able to navigate on a slope.

For the future of the project I think it would be better if you used rigidbody or character controller. Playmaker has a few action related to those and you could play with it to change some effects.

For the move towards I dont know if its the best or not, I used "translate advance" so I can call my movement on update, fix update or late update.

NewTo

  • Playmaker Newbie
  • *
  • Posts: 12
Re: Question about Character controller and move towards
« Reply #2 on: March 16, 2020, 04:15:43 AM »
Hmm, I was thinking that controller move or controller simple move were the way to go with the character controller as they are in the character tab in the action panel.

I don't really know what do to here ^^

hellzer

  • Playmaker Newbie
  • *
  • Posts: 28
Re: Question about Character controller and move towards
« Reply #3 on: March 17, 2020, 06:13:03 PM »
yes they are and they are the easy way to have something working. For the long term and a game release you should maybe use something more specific to your game.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7616
    • jinxtergames
Re: Question about Character controller and move towards
« Reply #4 on: March 18, 2020, 11:04:55 AM »
Hi.
Yes Character controller is good for quick prototyping.
Its better to build your on controls.

for example for moving in x direction using Left/Right

you can use Get Axis (set Axis Name to 'Horizontal')
store the value.
Then add a 'Set Velocity' and on X place the variable that you stored on the Get Axis.

you will need a rigidbody(2d) on the object to move.
also you might need to constrain some rotations on that component (else the object might fall over)

NewTo

  • Playmaker Newbie
  • *
  • Posts: 12
Re: Question about Character controller and move towards
« Reply #5 on: March 19, 2020, 09:45:45 AM »
It may a long time that I'm doing many different little prototypes, this time I'm going to try to do something more serious.

Thanks for you answers.