I need the up,down,left,right part of this (not the forward,backward), but I can't have diagonals. Can someone post the script to disable diagonals? Thanks
For those who are wondering, the smooth function will work on true/false ("boolean") values and turn them into fractions between 0 and 1, so instead of jumping instantly from false to true, it smoothly goes from 0 to 1. This works on buttons or keys, and it also works on comparisons like var.x>5. That was the bug in this script. We want to smooth the acceleration, not the comparison.
I JUST WANT TO USE THIS FOR FPS IS IT THAT FUCKING HARDDDD???!
2583060 7 months ago
I need the up,down,left,right part of this (not the forward,backward), but I can't have diagonals. Can someone post the script to disable diagonals? Thanks
shinyhalo 4 years ago
Very nice tutorial.
For those who are wondering, the smooth function will work on true/false ("boolean") values and turn them into fractions between 0 and 1, so instead of jumping instantly from false to true, it smoothly goes from 0 to 1. This works on buttons or keys, and it also works on comparisons like var.x>5. That was the bug in this script. We want to smooth the acceleration, not the comparison.
CarlKenner 4 years ago