Skip to content

Slider

A draggable slider that users can move to select a numerical value.

Authors and contributors to this community extension: D8H, VictrisGames.


A draggable slider that users can move to select a numerical value. The slider can be customized with sprites.

There are ready-to-use sliders in the asset-store settings UI pack.

Read more...

Tip

Learn how to install new extensions by following a step-by-step guide.

Slider

Let users select a numerical value by dragging a slider.

Object actions

De/activate interactions
De/activate interactions with the button.

Flip the object horizontally
Flip the object horizontally

Flip the object vertically
Flip the object vertically

Height
Change the height of an object.

Scale
Modify the scale of the specified object.

Show label
Show (or hide) the label on the bar.

Maximum value
Change the maximum value of the slider.

Minimum value
Change the minimum value of the slider.

Opacity
Change the opacity of an object, between 0 (fully transparent) to 255 (opaque).

Scale on X axis
Change the width's scale of an object.

Scale on Y axis
Change the height's scale of an object.

Step size
Change the step size of the slider.

Value
Change the value of the slider.

Width
Change the width of an object.

Object conditions

Horizontally flipped
Check if the object is horizontally flipped

Vertically flipped
Check if the object is vertically flipped

Interactions activated
Check if the slider allows interactions.

Being dragged
Check if the slider is being dragged.

Label is shown
Check if the label is shown.

Maximum value
Compare the maximum value of the slider.

Minimum value
Compare the minimum value of the slider.

Opacity
Compare the opacity of an object, between 0 (fully transparent) to 255 (opaque).

Scale on X axis
Compare the width's scale of an object.

Scale on Y axis
Compare the height's scale of an object.

Step size
Compare the step size of the slider.

Value
Compare the value of the slider.

Object expressions

Expression Description
Object.MaxValue() Return the maximum value of the slider.
Object.MinValue() Return the minimum value of the slider.
Object.Opacity() Return the opacity of an object, between 0 (fully transparent) to 255 (opaque).
Object.ScaleX() Return the width's scale of an object.
Object.ScaleY() Return the height's scale of an object.
Object.StepSize() Return the step size of the slider.
Object.Value() Return the value of the slider.

This page is an auto-generated reference page about the Slider extension, made by the community of GDevelop, the open-source, cross-platform game engine designed for everyone. Learn more about all GDevelop community-made extensions here.