AI vs Enemy Behaviors possible?

Hey guys! Is it possible to have an AI controlled ally to attack enemies with you but not harm you in gamesalad?

Im trying to put automatic Turrets (or sentries if you play call of duty) in a 2d game that attack enemies that come near it, but no attack the player. I also want the enemies to be able to attack it and destroy it. Anyone know if this is possible in gamesalad? And if it is, how? Thanks in advance

Comments

  • TheActualGamer TheActualGamer Member Posts: 19

    Bumo

  • SocksSocks London, UK.Member Posts: 12,822

    @TheActualGamer said:
    Hey guys! Is it possible to have an AI controlled ally to attack enemies with you but not harm you in gamesalad?

    Yes, just make the bullets the ally shoots not effect the player.

    @TheActualGamer said:
    Im trying to put automatic Turrets (or sentries if you play call of duty) in a 2d game that attack enemies that come near it, but no attack the player.

    Once the enemy is within range of the turret (detected using magnitude) then rotate towards them (using vector to angle) and shoot.

Sign In or Register to comment.