Same Actors but make individual on screen

BluSpyderBluSpyder Member Posts: 129
edited November -1 in Working with GS (Mac)
My actors have a rule where if you tap them they stop moving. But with my random spawning, if more than one is on the screen in the game and you tap on one of them to stop that one, ALL of the same actors on the screen stop. Any idea how to make it so the one that is touched is the only one that stops and the rest of the "same" actors on the screen keep going?

Comments

  • DrGlickertDrGlickert Member Posts: 1,135
    What's your rule say?

    When touch is pressed? Or when touch is pressed AND inside?

    I just threw something together and did this;

    Spawn actor spawned a moving actor every .3 seconds.

    The spawned actor had a change velocity randomly 0,360 degrees at a speed of 50

    On the spawned actor I applied Max Speed and turned maxiumum speed to 50

    Rule; when touch is pressed AND inside
    change attribute max speed to 0.

    This stopped each individual actor and not all of them

    How are you doing it?
  • BluSpyderBluSpyder Member Posts: 129
    Thanks for the reply. I have just when touch is pressed. I tried adding the touch is pressed and touch inside but still all the actors that were alike stopped together.
  • BluSpyderBluSpyder Member Posts: 129
    And it's velocity I have changing, should it be something else? And the actors all arent directional changing, they stay on one straight path across the screen. It's a game like Traffic Rush if you've seen that.
  • BluSpyderBluSpyder Member Posts: 129
    Tried setting everything with move behaviors instead of velocity, no difference.
  • BluSpyderBluSpyder Member Posts: 129
    Nevermind I figured it out. I deleted all the settings with attributes and changed it to only using self_linear motions on the actors and using rules with those self_motions. That made them individuals on the screen.
Sign In or Register to comment.