how to destroy a actor with another actor

TailGamesTailGames Member Posts: 76
edited May 2012 in Working with GS (Mac)
@tshirtbooth i have a button and a electrical ball that i want to turn off with the button,when the button is pressed the electricity stops and my actor can pass through, how can this be acheived? as this is critical and thanks again for the free art and is it fine if i useit in my game because its a commercial app......

Best Answers

  • jonmulcahyjonmulcahy Posts: 10,408
    Accepted Answer
    Personal communications should be sent via email.

    What you want to do us pretty easy. You need an attribute called something you can remember. And a button to trigger it

    On button:
    When button receives touch
    Turn attribute electricy false

    On fence:
    When electricity false
    Hide fence

    On ball
    When actor overlaps or collides with fence AND electricity is true
    Destroy actor
  • lazyrockeylazyrockey Posts: 4
    Accepted Answer
    my question:

    how to set the rule on fence?

    if we select "when attribute is change", will it be triggered everytime when the attribute is change? or we should have to add a Timer to check it every second?
    Personal communications should be sent via email.

    What you want to do us pretty easy. You need an attribute called something you can remember. And a button to trigger it

    On button:
    When button receives touch
    Turn attribute electricy false

    On fence:
    When electricity false
    Hide fence

    On ball
    When actor overlaps or collides with fence AND electricity is true
    Destroy actor

Answers

  • TailGamesTailGames Member Posts: 76
    hey thank you and noted down everything including personel emails aswell
  • TailGamesTailGames Member Posts: 76
    hey how do you make the actor false electricity false?
Sign In or Register to comment.