playMaker

Author Topic: Looking for a way to make a better movement controller [SOLVED]  (Read 2062 times)

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Hi guys,

i'm trying to make a controller for my 2D shmup, i'm trying with the usual get axis vector/set velocity approach vector, but it's not responsive enough. If i set the multiplier low, acceleration and decceleration is visible, and if i ramp up the multiplier, it moves too fast.

Is there a way to set a high multiplier but somehow clamp the vector?

« Last Edit: March 02, 2018, 08:17:05 AM by krmko »
Available for Playmaker work

RAVEN001

  • Junior Playmaker
  • **
  • Posts: 66
  • BANNED
Re: Looking for a way to make a better movement controller
« Reply #1 on: March 02, 2018, 06:35:51 AM »
just 'get axis' should be enough, it is a single float variable where less than centre is measured in negative numbers and more than centre is the positive numbers.
BANNED

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Looking for a way to make a better movement controller
« Reply #2 on: March 02, 2018, 06:43:58 AM »
I'll check it out ^_^
Available for Playmaker work

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Looking for a way to make a better movement controller
« Reply #3 on: March 02, 2018, 07:14:39 AM »
Unfortunately, it's still not sharp enough, there's too much inertia visible. I'm using velocity 2d.



I tried to apply vector to translate, but it's the same.



Is there a way to make these values go faster? I'll try raising the multiplier and clamping float.

Edit: well, that doesn't work. I read that that i can use axis raw that has no smoothing, but there's no action for that. I'll try axis event extended.


« Last Edit: March 02, 2018, 07:25:13 AM by krmko »
Available for Playmaker work

RAVEN001

  • Junior Playmaker
  • **
  • Posts: 66
  • BANNED
Re: Looking for a way to make a better movement controller
« Reply #4 on: March 02, 2018, 07:20:26 AM »
for this we need to know, are you translating or are they rigid bodies with 'force' applied. 'get axis' should be no problem if you have setup an x,y axis. you dont move in the 3rd dimension and this should act like a 2d project, unless you apply force which requires an object to 'slow down' before it can accelerate.
BANNED

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Looking for a way to make a better movement controller
« Reply #5 on: March 02, 2018, 07:39:29 AM »
Translating, i'm not using physics.
Available for Playmaker work

RAVEN001

  • Junior Playmaker
  • **
  • Posts: 66
  • BANNED
Re: Looking for a way to make a better movement controller
« Reply #6 on: March 02, 2018, 07:52:08 AM »
you can always get the value of an axis and multiply or divide depending. an axis value will always be a float and you can get/multilply/set to increase speed. i just dont understand your 'get axis vector' approach. your axis are set in project settings\input\ if your translating to those points it should be more or less instant.
BANNED

Fat Pug Studio

  • Beta Group
  • Hero Member
  • *
  • Posts: 1294
    • Fat Pug Studio
Re: Looking for a way to make a better movement controller
« Reply #7 on: March 02, 2018, 08:16:38 AM »
I wasn't aware of the adjustments in project settings, somehow missed it while reading the documentation. Gravity and sensitivity were the things i was looking for.

Thanks for your help and time!
Available for Playmaker work

RAVEN001

  • Junior Playmaker
  • **
  • Posts: 66
  • BANNED
Re: Looking for a way to make a better movement controller [SOLVED]
« Reply #8 on: March 02, 2018, 08:35:47 AM »
no problem. thats the point of this place! :)
BANNED