self ID question

SAMmanSAMman Member Posts: 228
edited November -1 in Working with GS (Mac)
Hey all,
does anyone know a good template that uses self.ID? I am trying to spawn several actors at once, all the same actor, but only destroy one of them when it collides with another actor and not all of them at once and I think self.ID is a way to do that. Does anyone know of a better way? Thanks.
SM

Comments

  • RedlerTechRedlerTech Member Posts: 1,583
    Hey SAMman,
    Are you changing a global attribute when a collision happens to trigger a destroy?

    Matt
  • RedlerTechRedlerTech Member Posts: 1,583
    For self.id what you want to do is create a global attribute (integer) called "Count" (0)
    In the actors you want to have an id, tell them to change attribute Count to count+1
    Then, change attribute self.ID to game.Count

    Matt :D
  • SAMmanSAMman Member Posts: 228
    that helps a ton. Thanks Matt! Do you have any experience with making a pinch to zoom by any chance?
    SM
  • RedlerTechRedlerTech Member Posts: 1,583
    No problem :D

    Do you mean pinching & spreading two fingers for a zoom effect?
Sign In or Register to comment.