Make side of shape lose condition

Discussion in 'How Can I...?' started by liuj, Jan 22, 2016.

  1. liuj

    liuj Boxer

    Joined:
    Sep 25, 2015
    Messages:
    1
    Likes Received:
    0
    Hi,
    Trying to make a game where ball bounces off each side of a pentagon (or some other shape). Everytime the ball hits a side of the same color, it bounces and changes color. If it hits a side that isn't the same color, the game is over. The rotation of the pentagon would be control by touch and hold on the left and right side of screen.

    How can I randomly select a side of the shape to be the enemy whenever the ball bounces off? Mockup below.
    game.png
     

Share This Page