Hello there, at the moment I am trying to figure out how to make an object move in 1 of 8 random directions on key release. The object is a ball, one that uses bullet behavior to effect its movement. The direction I need to move the ball in are 0(360?),45,90,135,180,225,270,315(for example).
I need this ball to randomly go in one of these said directions on ever key release. I am currently using the random(360) expression for the sake of moving along, but it would be more fitting of the mechanics I am aiming for to have the ball move in only 8 possible directions. Any help would greatly be appreciated ! Thanks in advance for any help!