Tap Screen to change Body Segmentation Colour

Hi, I’m trying to change the colour of a body outline segmentation texture when the user taps the screen. I’ve added in some scripting to change the colour to red using finger touch however I would like to add another colour with a further tap screen and I’m not sure how to go about this.

2 Likes

Hi @Becky_Hall! Try using the Flip-Flop node:

3 Likes

@Becky_Hall If you’d like to swap between more than two colors, check out the Select and Counter nodes!

1 Like

Thanks ill give it a try :slight_smile:

2 Likes