How do I set SliderBar to visible?

0 favourites
  • 3 posts
From the Asset Store
Snap to visible grid - perfect solution for any game genre
  • I'm trying to make an alternative touch control with the sliderbar instead of buttons.

    Here is the event sheet:

    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!

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • '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.

  • Thanks a lot!

    it now works

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)