What I'm trying to achieve is having a bullet spawn on a sprite then proceed to travel in one of two directions, and it will choose which of those directions to go in randomly. In my case I'm trying to make the bullet go at either 120 degrees or 60 degrees. I have gotten it so that the bullet will travel in a random direction in the range of 120 to 60, but not either just 120 or just 60. The syntax I have now is
Develop games in your browser. Powerful, performant & highly capable.
That worked! Thank you so much!