Play one sound when actor pressed once and another sound when pressed again

Hello ppl,
How can I get actor to play one sound when pressed once and another when pressed again.
I then need these sounds to keep playing like this consecutively as the actor is touched.
Thanks for any help :)

Comments

  • SocksSocks London, UK.Member Posts: 12,822

    Make an integer attribute - let's call it 'X'

    When touch is pressed, change X to 1-X

    Rule: When X=0 play A

    Rule: When X=1 play B

  • jonmulcahyjonmulcahy Member, Sous Chef Posts: 10,408

    @Socks said:
    Make an integer attribute - let's call it 'X'

    When touch is pressed, change X to 1-X

    Rule: When X=0 play A

    Rule: When X=1 play B

    What a nice alternative to mod!

  • ChampachanChampachan Member Posts: 21

    Thanks Socks, works a treat.

  • I_AM_BENJII_AM_BENJI USAMember Posts: 40

    @Socks said:
    Make an integer attribute - let's call it 'X'

    When touch is pressed, change X to 1-X

    Rule: When X=0 play A

    Rule: When X=1 play B

    shouldnt play b = -1

  • I_AM_BENJII_AM_BENJI USAMember Posts: 40

    nevermind

Sign In or Register to comment.