GameSalad

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

How to change attribute when touching another actor?

Sorry if this question has already been posted, but i couldn't find the answer i'm looking for.

I'm making a game and i want to change the attribute of an actor +1 or -1 when touching the corresponding actors (+ button, - button).

I know how to hide it when it reach 0, but i want it to stop at 4.

Help me with the rules please, i'm a beginner with gamesalad.

Thanks

Comments

  • IceboxIcebox Posts: 1,483Member
    edited April 2017

    @psycho_mac said:
    I'm making a game and i want to change the attribute of an actor +1 or -1 when touching the corresponding actors (+ button, - button).

    I know how to hide it when it reach 0, but i want it to stop at 4.

    make it a game attribute , for example game.xx
    in + button actor
    if touch is pressed and game.xx < 4
    change game.xx to game.xx+1

  • psycho_macpsycho_mac Posts: 3Member

    Thanks i'll try it tonight and tell you if it worked for me or if got it wrong.

  • psycho_macpsycho_mac Posts: 3Member

    Thank you Icebox, it works perfectly!!

Sign In or Register to comment.