ranma: dld again the previous capx.
I cheated using opacity.
It is a good question though, using the visible property with a conditionnal operator.
I'm not sure it can be done. If it can, I'd love to know how to.
For that one though, there's a trick/workaround to use a temp variable.
The code you first gave would look like :
on touch end
-- object is visible?
-- tVar = 0
++++ make object invisible
++++ tVar = 1
-- object is invisible?
-- tvar = 0
++++ make object visible
++++ tVar = 1
This stops the "looping" effect.
great, here's the exact code that worked, has to be inside a group as local variables can only be applied inside groups:
-----------------
group: clicking
-----------------
local number clickloop = 0
on touch end: clickloop = 0
-- object is visible?
-- clickloop == 0?
++++ make object invisible
++++ set clickloop = 1
-- object is NOT visible?
-- clickloop == 0?
++++ make object visible
++++ set clickloop = 1
hope it helps someone, thanks Kyatric