Help!! Brick Breaker

I am making a brick breaker game and I am having trouble programming the ball so when the bar at the bottom hits the ball it will go in that direction. It's hard to explain it but if someone could help that would be awesome!

Best Answer

  • master200012master200012 Posts: 372
    Accepted Answer
    try making an attribute (game, real) called (game bar angle)

    Constrain this attribute to the the game bars linear velocity x.

    Create this rule and add it to the ball.

    When ball overlaps with brick,

    change velocity x of the ball to this new game attribute.

    I'm not sure this is what you want but it's worth a shot!
    Good Luck!
Sign In or Register to comment.