HOW TO MAKE AN ACTOR MOVE RANDOMLY IN ANY DIRECTION AFTER COLLISION????

RaxusRaxus Member Posts: 1
edited November -1 in Working with GS (Mac)
I want a ball that when the game start, it moves to a random direction and when it hits a wall or another object, it moves randomly to another direction, Please I would greatly appreciate help on this!

Comments

  • wormilwormil Member Posts: 127
    on init of the ball send it in a random move direction
    on collision send it into a new random move direction
    there's a random function
  • keweworkshopkeweworkshop Member Posts: 377
    Here is a video tutorial that I used and it was a great help to me. It has many parts, I would suggest starting at the beginning, but part 6 has a ball bouncing around randomly when it hits walls and the like. It might help you.

    Part 6
Sign In or Register to comment.