How do I set SliderBar to visible?

Get help using Construct 2

Post » Sun Mar 26, 2017 9:21 am

I'm trying to make an alternative touch control with the sliderbar instead of buttons.
Here is the event sheet:
Image

SliderBar is initially set to visible, and the buttons are invisible.
It changes from the sliderbar to the regular controls, but it doesn't change back.
Any idea how to fix this?
Thanks!
B
3
Posts: 3
Reputation: 181

Post » Sun Mar 26, 2017 10:24 am

'Is on screen' refers to a position. Is the position on the screen or not.

I know that the SliderBar has no 'Is visible' condition. It is a form element. So .....

Give SliderBar an instance Boolean 'VisBle', set it to true (in the properties ... if it starts visible)

Now the code is:

(SliderBar) Is Boolean set ('VisBle')
__________________set invisible
__________________set Boolean ('VisBle') to false
Else
__________________set visible
__________________set Boolean ('VisBle') to true

Else is NEEDED, else the first event (set invisible) will set the second event ALWAYS true.
B
33
S
18
G
27
Posts: 2,440
Reputation: 20,344

Post » Sun Mar 26, 2017 11:12 am

Thanks a lot!
it now works :)
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: Cubus32, tarek2 and 8 guests