you can use overshoot physics, and can adjust the constant based on how difficult you want it to be.
Basically, the cursor follows the mouse movement on an imaginary spring (like a bungee cord), and when you stop, it continues in motion until it reaches the max spring potential and recoils back.
You can also add random "collisions", ie induce a hit at a random angle to modify the x,y velocity unpredictably. You see this in those "Drunk pee" flashes.
You can also model the same idea as an acceleration model.
Quote:
Originally Posted by excaliber7388
Just define an area where the mouse could click in, and every time the mouse is clicked, send the ball, and check if it was in the designated strike zone.
|
That is basically what he said. Stop postcounting++
Quote:
Originally Posted by zokemon
We aren't going to design your idea for you. Give us an exact idea what you want before making ambiguous requests.
|
His idea was reasonably clear. If you want to be snarky to others, learn how to read first.