How do I get cordinates where two actors collide

PortymanPortyman Member, PRO Posts: 409
edited November -1 in Working with GS (Mac)
I want to rotate cannon to that area and shoot. I think rotate to coordinate would be the best option. It's a tower defense game. Thanks..

Comments

  • RHRH Member Posts: 1,079
    create two attributes, call them like collideX and collideY

    Create a rule the actors collide change attribute collideX to self.position.X and collideY to self.position.Y

    Keep it in mind that this wont work very well (if at all) for a tower defence style game. Somebody made a good looking tower defense template (sort of). Search for tower destroy or something.
  • PortymanPortyman Member, PRO Posts: 409
    Thanks. I looked at the 2 demos for td and fot some ideas, but neither fit what I need.
Sign In or Register to comment.