Hey there, Cascade here with my first tutorial!
I recently implemented a random direction function to generate a throw mechanic which will really stir up a boss fight and prevent velocity from sending you in one direction only.
In order to implement this properly, I strongly suggest you use the "throw" mechanic to create the initial velocity, for example:
Once you've set the velocity correctly for your throw mechanic, it's relatively simple to...
Creating a Random Throwing Direction
I recently implemented a random direction function to generate a throw mechanic which will really stir up a boss fight and prevent velocity from sending you in one direction only.
In order to implement this properly, I strongly suggest you use the "throw" mechanic to create the initial velocity, for example:
Code:
- throw{velocity=4;velocityY=2}
Creating a Random Throwing Direction