This is the most common input system used in many popular hyper casual games like Cube Surfers, Stack Colors, Giant Rush etc. This is mostly seen in runner games Get the scripts here: github.com/rak... 🔥 Find more: www.rakibjahan...
How do you animate with this code ? When you pressing but not moving left or right, resetting animation is making player look like jittering every frame
@@rakibjahan It's limits the player moving speed but not set a limits so the player can't position cannot be less than -4.5 and more than 4.5 along the x axis, can you give me an idea how to do it? I'm waiting your response!
I know it's late, you've probably solved it by now. But for anybody that still tries to solve this; you can use Mathf.Clamp function to clamp x values in between -4.5 to 4.5. So even if the x value gets over 4.5, clamped value will stay 4.5.
can you say where did you learn to create this cool hyper casual games ... or can you suggest any course . i didnt find any on internet . hope you helps