Playmaker Forum
PlayMaker Help & Tips => PlayMaker Help => Topic started 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?
-
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.
-
I'll check it out ^_^
-
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.
-
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.
-
Translating, i'm not using physics.
-
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.
-
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!
-
no problem. thats the point of this place! :)