I would like to have a sprite randomly rotate either up to +x or -x degrees every so often. random(x) gives me a positive number but I'm looking for a formula that accomplishes returning a number between negative x and positive x but I can't figure it out, math is my weakness.
Develop games in your browser. Powerful, performant & highly capable.
Perfect! That's fantastic.
That will be useful for so many different purposes.
Thanks so much