Make actor move in random direction
OlympusMons
Member Posts: 0
I'm working on a version of the classic pong-game.
I simply want the ball to begin moving in a random direction at the beginning of each round.
I've tried using the "move"-commando and setting it to random(0,360) but this apparently doesn't work. How do I solve this?
Comments
Hi @OlympusMons and welcome to the GS Forums.
You're almost there... you need to separate obtaining the random angle from the Move behaviour. So make an attribute, angle or integer, let's call it RandAngle
""You are in a maze of twisty passages, all alike." - Zork temp domain http://spidergriffin.wix.com/alphaghostapps