Actors with changed Tags won't collide-detect

JamJarRiotJamJarRiot Member Posts: 62
edited November -1 in Working with GS (Mac)
I have some of my objects change their Tag properties in-game. However the collision detection won't pick up on their new Tags.
Say an actor begins the game with tag "ActorA". Triggering a collision between an object and any actors with the Tag "ActorA" will work.
During the game I change it's Tag to "ActorB". Using DisplayText I can see that the actors Tag has definitely changed to "ActorB" but any subsequent Rules that asks if an object has Collided/Overlapped with an actor with Tag "ActorB" now no longer work.

Is this a bug or just an oversight from me as the whole point of Tags, for me at least was to enhance collision groups and define what exactly is hitting what.

Comments

  • TwistedMechTwistedMech Member Posts: 408
    i can confirm i had the same problem and in the end I have to change all my collide rules to not use tags anymore because of this problem.
  • UtopianGamesUtopianGames Member Posts: 5,692
    Detection wont work unless you have movable checked...not sure if this is the problem but just throwing in a possible answer.

    Darren.
  • MotherHooseMotherHoose Member Posts: 2,456
    on the home screen of your project... in [Actors] do you have all the tags assigned to the actor?

    I thought they had to be assigned there... all interactive tags not just current one.

    MH
  • JamJarRiotJamJarRiot Member Posts: 62
    Thanks for the answers. TwistedMech is probably right, Tags assigned at run-time are detected ok, but dynamically assigning them in-game doesn't register them for collision events. But dynamic tags are certainly registered as new tags, as the DisplayText property will show.
    So quite why they're of no use in collisions is not too clear.
Sign In or Register to comment.