Destoy or change velocity to many actors simultaneously!!!!!!

ThemistoklesVThemistoklesV Member, PRO Posts: 138
edited December 2011 in Working with GS (Mac)
Dear Gurus,

I have a scene with many actors (enemies) moving across this scene. Each of these actors has his own move behaviour. Another actor (weapon) destroys/add score each time it overlaps or collides with the enemy actors. I want to create an actor and when my gun actor destroys it, then all the other actors (enemies) will be destroyed automatically.

Another option that I would like to add is another actor and when my gun actor destroys it, then all the other actors (enemies) will be freeze slow down their speed

How can I reproduce that?? Is that possible?

Thanks!!

Comments

  • cbtcbt Member Posts: 644
    That is possible and quite easy actually..

    Lets call your actor that destroys everything "BOMB"

    Create a game boolean attribute "bomb"

    In BOMB create rule;
    -When collides with "weapon", change game.bomb to true
    Add a timer to BOMB;
    -After 0.5 seconds, change game.bomb to false

    In every enemy actor you have create a rule;
    If game.bomb is true, destroy

    That should do it.

    And for freezing effect or slowing down effect use the same logic. Lets say the actor that slows or stops enemies named "FREEZE"

    Create an integer attribute "Enemy_Speed"
    You have to change your move behaviors on enemies. Change the speed section to "game.Enemy_Speed"

    So when your FREEZE actor gets hit with your weapon, just change the game.Enemy_Speed and change it back to normal whenever you want.

    I hope this helps.

    Try watching all the videos from TshirtBooth. Even what you are looking for are not specifically there, they sure will help you understand the logic behind this all.
  • ThemistoklesVThemistoklesV Member, PRO Posts: 138
    edited December 2011
    thanks very much i will try your suggestions!!

    yeah tshirtbooth has many many good stuff!!!!

    thanks again!
  • ThemistoklesVThemistoklesV Member, PRO Posts: 138
    cbt i tried you suggestions and everything works just fine!!!!!!

    unfortunately i have an issue!!
    whenever the weapon collides the bomb actor, it destroys all enemy actors(that's GREAT!!!) but afterwards enemy actors seems to be auto destroyed and they will re-spawn only whenever the bomb actor re-spawns.......and bomb actor is a bonus actor and it re-spawns every 45 sec!!!

    any suggestions??
Sign In or Register to comment.