0
Answered

flip bool

eagleeyez 8 months ago in Game Creator updated by Marti (Lead Developer) 8 months ago 3

just as the title says. I would like a flip bool condition. for stuff like inventory press i opens, press i again closes.

Yes i can do this with if and else but a simple flip bool function would be nice.

Unity version:
2019.3.0f3
Game Creator version:
1.1.3

Answer

Answer

There is a toggle variable action. I use this to do exactly what you are suggesting. 

Search on Toggle in the Actions dropdown.

GOOD, I'M SATISFIED

As always very quick and excelent support

Satisfaction mark by eagleeyez 8 months ago
Answer

There is a toggle variable action. I use this to do exactly what you are suggesting. 

Search on Toggle in the Actions dropdown.

Thank you, I did not think to look for toggle. Maybe some things need extra tags, so that by typing flip I would have been pointed to Variable Bool Toggle. And then I would not have even had to have asked this question.

Thanks again.