Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Fat Pug Studio on March 02, 2018, 06:29:42 AM

Title: Looking for a way to make a better movement controller [SOLVED]
Post by: Fat Pug Studio on March 02, 2018, 06:29:42 AM
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?

Title: Re: Looking for a way to make a better movement controller
Post by: RAVEN001 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.
Title: Re: Looking for a way to make a better movement controller
Post by: Fat Pug Studio on March 02, 2018, 06:43:58 AM
I'll check it out ^_^
Title: Re: Looking for a way to make a better movement controller
Post by: Fat Pug Studio 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.

(https://s13.postimg.org/mx4khe8t3/ezgif.com-crop.gif)

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

(https://s13.postimg.org/quru6vg7r/ezgif.com-crop_1.gif)

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.


Title: Re: Looking for a way to make a better movement controller
Post by: RAVEN001 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.
Title: Re: Looking for a way to make a better movement controller
Post by: Fat Pug Studio on March 02, 2018, 07:39:29 AM
Translating, i'm not using physics.
Title: Re: Looking for a way to make a better movement controller
Post by: RAVEN001 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.
Title: Re: Looking for a way to make a better movement controller
Post by: Fat Pug Studio 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!
Title: Re: Looking for a way to make a better movement controller [SOLVED]
Post by: RAVEN001 on March 02, 2018, 08:35:47 AM
no problem. thats the point of this place! :)