super noob question

rex45rex45 Member Posts: 42
edited November -1 in Working with GS (Mac)
im using the wall breaker to make a ball bounce of a paddle. how to i make a score that goes up every time the ball bounces off the paddle? Im pretty new so i don't know how every thing works. :D

Comments

  • simo103simo103 Member, PRO Posts: 1,331
    create an integer attribute called score

    in the paddle put a rule when actor overlaps or collides with the ball then a behavior change attribute score =score+10 or whatever you want.

    if you want to display this you need to create an actor called ScoreText and add a display text behavior set to show score and then drag that in your scene.

    Note the actor and attribute names can be whatever you want.
  • DrGlickertDrGlickert Member Posts: 1,135
    Also, you should start watching the tutorial videos. They help immensely!

    http://www.youtube.com/user/GameSaladCookbook

    There are a lot, but they're usually fairly short. Check those out to learn about all the cool features of GS.
Sign In or Register to comment.