recycle actor help (ignore previous post!)

stackpoolestackpoole Melbourne, Victoria, AustraliaMember, PRO Posts: 473
edited July 2012 in Working with GS (Mac)
Hi



I have 3 actors that move down and when I touch these three actors they go off the scene (to recycle)
What I want is that when the actors are touched and go off the scene, how can I make the move stop


Thanks for any help!!

Sydney Swans 2014!!

Best Answers

  • UtopianGamesUtopianGames Posts: 5,692
    Accepted Answer
    Make a boolean "touched" and add if attribute "touched" is false to your move rule.

    Then when actor is hit change the boolean touched to true.

    Darren.
  • MotherHooseMotherHoose Posts: 2,456
    edited July 2012 Accepted Answer
    @brendanzh926 …knowing what behavior controls the movement of those actors
    … might get a better answer

    your GS project (computer) will always track the X;Y position on any actor

    for MLV …

    on movingDown actors:
    in actorAttributes: Motion… set Linear Velocity.Y to -100 (or whatever speed you like)

    add:
    Rule: when
    Event: touch is pressed
    -changeAttribute: self.Position.Y To: 400 (offScreen position)
    (here you can add more changeAttributes for count or score)

    that should keep things moving

    image MH

Answers

  • stackpoolestackpoole Melbourne, Victoria, AustraliaMember, PRO Posts: 473
    edited July 2012
    Hi



    I have 3 actors that move down and when I touch these three actors they go off the scene (to recycle)
    What I want is that when the actors are touched and go off the scene, how can I make the move stop


    Thanks for any help!!

    Sydney Swans 2014!!

Sign In or Register to comment.