Condition > change actor tag

AtlantenAtlanten Member, PRO Posts: 56
edited November -1 in Working with GS (Mac)
Is there a way to change an actor's tags during the game?

Say something has collided 3 times, then change tag so that it won't collide anymore.

There is a self.tag attribute in the attribute browser, I tried to change that by writing the name of another tag in the expression window, but things got unpredictable after that.

What's the right way to do this? Couldn't see anything about it in the Wiki.

Thanks!

Comments

  • jhaasjhaas Member Posts: 233
    Place the collide behavior inside a rule - I've done this and it works.

    Attribute collide_count <= 3 then collide.
  • AtlantenAtlanten Member, PRO Posts: 56
    Sure, but the question was whether you can change an actor's tags during the game.

    The collide behavior will be on another actor, what I want is for a collision object to stop being a collision object after a certain amount of collisions.
  • CodeMonkeyCodeMonkey Head Chef, Member, PRO Posts: 1,803
    Nope. Non-modifiable attribute.
  • ozboybrianozboybrian PRO Posts: 2,102
    It sucks that you can't, Visibility and moveable and Gravity should all be able to be switched on and off during a scene at any time.
  • calvin9403calvin9403 Member Posts: 3,186
    ozboybrian said:
    It sucks that you can't, Visibility and moveable and Gravity should all be able to be switched on and off during a scene at any time.

    this thread is a year old...
Sign In or Register to comment.