Define space within an object to use collision rule

RRSRRS Member Posts: 8
edited November -1 in Working with GS (Mac)
Is there a way I can define an area or a portion of my "player/character" to use with collide attribute with? Meaning if an object strikes my character in one place nothing happens, but if it strikes it within the pre-defined perimeter it triggers an action or destroy or bounce?

Comments

  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    Hi RRS, basically no, if your player is one actor only. You'll have to constrain several actors together, making some with collision detection, others not.

    There's a tshirt booth demo here: http://gamesalad.com/wiki/how_tos:gsc_how_to_have_more_then_one_hit_points#

    Edit: Beaten to it, by Mr.Rinoy!

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

  • RRSRRS Member Posts: 8
    Thank you both for your fast response. :)
  • scitunesscitunes Member, Sous Chef Posts: 4,047
    My answer to this question - kind of.

    If you make an actor that is a rectangle (in other words NOT a perfect square) and set the collision shape to circle an interesting thing happens. The collision shape is a perfect circle (not an oval) and is centered. This circle will have the diameter of the shorter side of the rectangle. So sometimes I may have an actor that is much wider than it is tall (guy with arms out lets say) and I will set it to circle so that the collision happens when it hits the centered circle which I try to line up my image so that the body lines up with this imaginary circle. When the arms overlap with something nothing happens, but when the body is hit the collision is triggered. I have found this to be useful from time to time.
  • RRSRRS Member Posts: 8
    Thanks for the input. I appreciate all of the comments. I am still working on it, but it seems that I will be able to get that done with the suggestions you all provided. Thanks :)
  • reddotincreddotinc Member Posts: 653
    I've used this in my game and it works GREAT :)
Sign In or Register to comment.