Question about TSB's Constrain paddle video

DrGlickertDrGlickert Member Posts: 1,135
edited November -1 in Working with GS (Mac)
I watched the video. I have a paddle in my game, but I want the paddle to not stop at the edge of the screen, but to stop halfway off the screen. How should the expression line be changed to allow the paddle to go out halfway?

I have a brick breaker game and sometimes the paddle will change size; a width of 100, 140, and 180. So changing the 0 (to -70) and 320 (to 390) won't necessarily work.

Any thoughts?

Thanks!

Comments

  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    i would have a rule when width=100
    then the constrain with the right numbers you wnat

    and then have 2 more rules when width=140 and 180 with the contrain with the numbers adjusted how u want
Sign In or Register to comment.