When enemy actors colide together 2nd enemy actor cant hit me

Frap1KFrap1K Member Posts: 10

Hi guys I got stuck on one problem.

I got enemy actors that can go through each other to get to player position. But when the enemy reaches the Player the FIRST enemy hits the PLAYER but not the second one or if the enemy actors are running in a group of 5, only the first enemy will do damage to the player other 4 will do nothing only if i go farther away and then come back they will hit me but again only 1 of them not all 5.

I have no idea why it does that please help thanks for attention!

Comments

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    If your collision rule is in the player actor, then that's the problem. Once that collision rule fires, it won't fire again when more than one enemy collides with the player. That rule should be in the enemy actor instead.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

  • Frap1KFrap1K Member Posts: 10
    edited June 2014

    So i have to create Collision in each "Enemy Actor"? and None in "Player Actor? did i get it right?

    If something i have a spawner that spawns enemy every 5 minute that, doesnt effect anything ? or there must be different "Enemy Actors"? and I'll need to add Collission to all of the "Enemy Actors"?

    Thanks for replying!

  • Frap1KFrap1K Member Posts: 10

    It works thanks tatiang it was actualy easy .. something wrong is going on with my head!

  • tatiangtatiang Member, Sous Chef, PRO, Senior Sous-Chef Posts: 11,949

    You're welcome! Glad it's working.

    New to GameSalad? (FAQs)   |   Tutorials   |   Templates   |   Greenleaf Games   |   Educator & Certified GameSalad User

Sign In or Register to comment.