Touch AND Collide

allaboutiweballaboutiweb Member Posts: 42
edited November -1 in Working with GS (Mac)
Is it possible (and if so, how) to apply the collision rule to an item I am dragging around the screen. For example, if I have a player who can be dragged around the game screen and I have walls around the edge of that screen why does it keep shooting off the edge rather than bounce off the walls?

Is it possible to constrain the player to min/max X and Y co-ordinates?

I really would appreciate some help on this as it is all that is stopping me from finishing my first game; artworks finished, tunes are written, funky menus are working......

Comments

  • allaboutiweballaboutiweb Member Posts: 42
    @Tshirtbooth,

    That is fantastic, so conversely I can also tell it if mouse position y is greate than 10 and less than 230 constrain to touch! Why oh why did I not see that?

    Thank you soooooo much.
  • allaboutiweballaboutiweb Member Posts: 42
    tshirtbooth said:
    Tell it if mouse position x is greater then 10 and less then 470
    constrain to touch

    I must be doing something wrong as this doesn't work....Player 1 still goes off screen with the finger touch, grrrrrrr!!!
Sign In or Register to comment.