How to make only part of an actor collidable?

sparx13sparx13 Member Posts: 97
edited July 2012 in Working with GS (Mac)
Hi, I'm making a game where arrows are shooting out of a tower at enemies, but when it shoots the enemy instead of the arrow head hitting the enemy the end of the arrow hits the enemy. Is there a way I can make only the top part of the arrow collide with the enemy and destroy it, and only the top. Or is there a way I can make a mini separate actor that is invisible that sticks to the arrow and only when that mini actor hits the enemy it destroys it? The second way would probably be better.

Best Answers

Answers

  • sparx13sparx13 Member Posts: 97
    Thanks I give that a go
  • sparx13sparx13 Member Posts: 97
    I tried following and it worked but is there a way I can spawn them both and still make the invisible actor on the tip of the arrow?
  • sparx13sparx13 Member Posts: 97
    I'm not sure if this was the best way of doing it, at the moment I can't get the arrow to go at the enemy. I can either get the arrow to fly in the right direction but face the wrong way or the opposite. I really need help with this one!
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    When you make and import the image of the arrow, it needs to point exactly to the right like this: -----> This makes the beginning angle of the arrow at '0' degrees.

    Then it will be easier to give you formulas/equations that will get it flying in the correct direction.
  • sparx13sparx13 Member Posts: 97
    Ok thanks I have imported the arrow facing the right, but I'm unsure where to go from here.
  • sparx13sparx13 Member Posts: 97
    I'm stuck at the moment still unsure how to get it to go in the right direction and face the right direction.
  • RThurmanRThurman Member, Sous Chef, PRO Posts: 2,881
    First work on getting the arrow to fly in the correct direction. Then work on constraining a second actor (the arrowhead) later.

    The arrow's beginning direction (angle) will be between 0 and 359 degrees. Zero points directly to the right, 90 points directly up, 180 points directly to the left, and 270 points directly down.

    Use a "Rotate To Angle" behavior to make the arrow point in the direction you want.
  • sparx13sparx13 Member Posts: 97
    Thats the bit I'm unsure about because the thing it shooting at is moving past it. And I need the arrow to fly at the moving target. I want the arrow to go strait at the moving target, how do I do this?
Sign In or Register to comment.