Move to with 'Tags'

EsayemEsayem Member Posts: 8
edited August 2012 in Working with GS (Mac)
Hello there

I'm wondering if it is possible to use the 'move to' attribute with a Tag. I have a group of actors that need to move to a certain location when another actor is destroyed. Was hoping there was a way I could do this with Tags?

Thanks

Comments

  • EsayemEsayem Member Posts: 8
    edited August 2012
    Feel like this self.Tags has something to do with it
  • gyroscopegyroscope I am here.Member, Sous Chef, PRO Posts: 6,598
    edited August 2012

    @Essayem

    Hi, you can use self.Tags for certain things but wouldn't really help you here.

    As your group of actors all perform the same action (moving to a certain location) when another actor is destroyed, a simple boolean attribute would work to trigger them into action. Although this does mean putting the same Rule in each of those actors to be moved. (But if these actors are all locked prototype copies, then you only need put the Rule once in the Prototype in the Inspector, as you probably know).

    Let's call the boolean ActorDest. So in your Inspector protoype (or in all of the actors to move if they've been unlocked) add:

    Rule: When ActorDest is true
    Move To Behaviour
    ---these next two lines to reset if needed
    Timer: After ----same amount of time in Move To behaviour
    Change Attribute ActorDest to false

    Then in your actor that's destroyed, just before its Destroy Behaviour, put
    Change Attribute ActorDest to true

    One final point, some other GSC users have reported trouble with the Move To Behaviour, so if you have problems there as well, use Interpolate instead.

    ""You are in a maze of twisty passages, all alike." - Zork        temp domain http://spidergriffin.wix.com/alphaghostapps

Sign In or Register to comment.