Actor not colliding when controlled

MetzoPainoMetzoPaino Member Posts: 195
edited November -1 in Working with GS (Mac)
My app works similar to a breakout game, but I'm running into a bit of a problem.

I have an area near the bottom of the portrait screen that the paddle follows, but if I swipe too far along my paddle will go off the screen. I had tried adding walls and collisions to both actors, but my mouse/touch input seems to override that behaviour. I also tried to shorten the area that can be swiped, but once the player has gained control of the actor they can drag it as far as they want.

Any help?

Comments

  • youngster9youngster9 Member Posts: 326
    Try constraining the self.position.x attribute between 0 and 480.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    Go to gshelper.com and look at the min, max video

    That will show you what you need
  • MetzoPainoMetzoPaino Member Posts: 195
    Thanks for the help, that video sorted out all my problems.
  • JohnPapiomitisJohnPapiomitis Member Posts: 6,256
    figured it would help. glad you got it working
Sign In or Register to comment.