help with touches

RUPASRUPAS Member Posts: 823
edited November -1 in Working with GS (Mac)
image

The problem is that when I play the actor destroys the green green, red and blue, as I can do to touch one by one, ie, 1-touch green square is destroyed, 1 touch blue square destroyed destroyed, 1-touch red square destroyed

Comments

  • UtopianGamesUtopianGames Member Posts: 5,692
    You need to make 3 game booleans or an integer (i prefer booleans).

    RedTouched, BlueTouched and GreenTouched.

    Now in each actor let's start with Red do if touch is pressed and BlueTouched = false and GreenTouched = false change attribute RedTouched to true otherwise change attribute RedTouched to false.

    Repeat for the other 2 change Red for there own colours...now you will only be able to touch one actor at a time and do what you want.

    Darren.

    image
Sign In or Register to comment.