[example] How to make a configurable Slider

Get help using Construct 2

Post » Wed Feb 15, 2012 3:34 pm

capx

capx for touch

You can set min and max value in instance variable of sld_line object.
As well as a snapped boolean if you want your slider to snap on rounded values.

The sliders now use container to associate the button, the line and the eventual textbox object.
Last edited by Yann on Sun Sep 14, 2014 11:41 am, edited 2 times in total.
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Wed Feb 15, 2012 4:08 pm

Thanks for this! I was just about to implement a volume slider in my project . Great work!
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Wed Feb 15, 2012 7:03 pm

hahah nice!
I just made myself a slider yesterday :P
B
107
S
40
G
10
Posts: 456
Reputation: 13,202

Post » Wed Feb 15, 2012 7:12 pm

Yann you should really write tutorials!
B
29
S
12
G
7
Posts: 740
Reputation: 7,849

Post » Tue Mar 06, 2012 7:35 am

Massive thanks for this Yann! Would have taken me quite a bit of time to throw together a slider myself and this covers every aspect of a slider I could imagine needing for my own projects.

Got a project I'll be posting up shortly using the slider code.

Cheers,
David
B
126
S
7
G
4
Posts: 185
Reputation: 7,233

Post » Tue Mar 06, 2012 9:21 am

[QUOTE=smitchell] Yann you should really write tutorials![/QUOTE]

That's what I am saying all along...
B
42
S
19
G
12
Posts: 723
Reputation: 13,911

Post » Tue Mar 06, 2012 2:00 pm

Thanx!
Awesome work!
B
56
S
20
G
13
Posts: 778
Reputation: 13,204

Post » Tue Mar 06, 2012 2:03 pm

@Ugotsta
It lakes only one thing: setting the slider position given a value. For now it only do the opposite.

@All
You're welcome \o/
B
60
S
22
G
14
Posts: 1,479
Reputation: 16,346

Post » Fri May 25, 2012 11:34 pm

Hi Yann,

How can I identify each one of the slider's instances that I use in order to send their values to a group of different global variables?

I don't find the way to get their instance ID!

Thanks a lot in advance.
B
16
S
4
G
1
Posts: 105
Reputation: 1,829

Post » Fri May 25, 2012 11:59 pm

@Heptagono

Might this behavior could help you make a slider easily.
B
97
S
22
G
178
Posts: 4,118
Reputation: 104,043

Next

Return to How do I....?

Who is online

Users browsing this forum: gregorysforster, WhosWho and 15 guests