Spawning same actor over and over

micksolomicksolo Member Posts: 264
edited November -1 in Working with GS (Mac)
Hi, in my game I spawn the same actor over and over by touching the screen. I need to drag the actors around and do some other stuff, but at the moment when I drop the second actor, all the actors that have been spawned all get affected the same way as the current actor.

I'm wondering what is the simplest way to code up a rule that differentiates the same actor from each other once they are spawned? I was thinking maybe assigning an ID and saving the attribute, but not quite sure how to go about it.

The other solution was to duplicate the actor20 or 50 times, but again I have to create many global attributes to set the position when dragging. Surely there must be an easier way?

Thanks

Mick

Comments

  • tenrdrmertenrdrmer Member, Sous Chef, Senior Sous-Chef Posts: 9,934
    It would help to know more exactly what you are trying to do and what is happening. you should be able to drag each actor separately by using a when touch is pressed rule. However it doesn't sound like that all you are having an issue with. so more info and even a video would really help us help you out.

    ___________________________________________________________________________________
    Project Help from Tenrdrmer Click Here

    GS BubbleBall Template HERE!!
    Stacks Level Selection Template HERE!!
    Expanding Option Menu Template HERE!!
    Tenrdrmer's Menu # 3 HERE!!
    Menu #4 - Level Banners HERE!!
    AppSolute Entertainment on Facebook
    AppSolute Entertainment on iTunes
  • micksolomicksolo Member Posts: 264
    Hi, basically when i spawn the actor, if i hold down touch on the actor the actor will get bigger until touch is released. Right now all the actors get bigger when touch is pressed on any one of the instances. I want only the one I'm touching to get bigger, not all of them.
Sign In or Register to comment.