NewObject7 appears with a left click.
How can I make it disappear with a left click again?
I am looking for the condition to use to identify that the NewObject7 is currently visible, in order to then Add action: Hide NewObject7
Basically, what is the condition for “NewObject7 is visible”?
one main event with three sub-events. I’ll try to sketch for you.
main event:
the cursor is on the object, mouse button down, trigger once change a variable of the object: +1
first sub:
check the variable’s value. if it’s greater than 1 do set to 0
second sub:
check the variable’s value. if it’s 0 hide the object
third sub:
check the variable’s value. if it’s 1 show the object
please next time read more carefully what I wrote. in the main event there is an add (+) operation. and one more thing. when you use this method, you should keep synchronously this with your other actions. for example in the “at the beginning of the screen” event, or elsewhere when you “manually” hide the object, you should change it’s variable manually too! for example you are want when variable is 0, the oject will be hidden, you should modify the value to 0 when you hide the object! keep this in mind.
Sorry, mate. Still a beginner. I did change the 1 to +1, and the problem continues to insist as you can see in the GIF:
(I am currently using some random pics.
First time, I added the +1, once I click on the object “House”, the “PrivacyStatement” appears, but upon a second left-click, nothing happens.
The second try, I replaced the At the beginning with changing the variable “show” of the “PrivacyStatement” to 0 (which is the hidden state), BUT the “PrivacyStatement” appears in the start of the launch and it doesn’t go away upon left-click)
it has to be good. may be something other thing cause the issue. you should use the debugger function. you can check the variables and other stuff there. try to find what’s wrong.