How do I recover the value of SliderBar ! (sorry I'm frensh)

Get help using Construct 2

Post » Fri Nov 25, 2016 4:30 pm

Hi everybody,
Sorry for my english because I'm frensh.

I want to recover the value of a SliderBar por example if the Value of the SliderBar is 40 / 100, put in a variable 40.

thank you, Adrien
B
3
Posts: 3
Reputation: 181

Post » Sat Nov 26, 2016 9:33 am

Hi everybody,
Sorry for my english because I'm frensh.

I want to recover the value of a SliderBar for example if the Value of the SliderBar is 40 / 100, put in a variable 40.

thank you, Adrien
B
3
Posts: 3
Reputation: 181

Post » Sat Nov 26, 2016 10:13 am

The SnowYx wrote:Hi everybody,
Sorry for my english because I'm frensh.

I want to recover the value of a SliderBar for example if the Value of the SliderBar is 40 / 100, put in a variable 40.

thank you, Adrien


It's covered in the relevant Manual entry for SlideBar.

If you have a variable called 'sbval'

Then you could have a condition / action Like:

Code: Select all
Slider Bar On Changed    -     System set sbval to SliderBar.Value


You could then display this in a text object or however you want.

Here's a quick example:
https://dl.dropboxusercontent.com/u/34306693/ReturnSliderBarValue.capx (requires r240 available at footer of forum).

Is this what you require?
If your vision so exceeds your ability, then look to something closer.
Moderator
B
131
S
29
G
81
Posts: 5,328
Reputation: 56,630

Post » Sat Nov 26, 2016 10:27 pm

thank you !! :p
B
3
Posts: 3
Reputation: 181


Return to How do I....?

Who is online

Users browsing this forum: rotacak and 4 guests