![]() |
Attention | Topic was automatically imported from the old Question2Answer platform. |
![]() |
Asked By | jala015 |
Hi everyone!
I have a simulator with a slider that ranges from 0 to 1. However, the slider should be limited to max 0.4 until the player pushes another button. Is there a way to create this limit with the slider node? The only solution that I thought was coding a custom slider by myself.
I’m not sure with the Editor but you should be able to do it in script with
get_node(my_slider).set_max(0.4)
and get back to 1 when the player clicks the button ?
Anate | 2023-02-07 18:06
perfect! That’s just what I was looking for… Thank you!
jala015 | 2023-02-07 18:21
my pleasure, good luck with your project (: !
Anate | 2023-02-07 18:22