on click do slider1.value:slider1.value - 1 slider1.event.change[val] end
I tried using this code to change the value of the slider and execute this script:
on change val do Sphere.paste[Assets.images[val]] if me.value = 0 button1.show:"solid" button2.show:"solid" else button1.show:"none" button2.show:"none" end end
There is a range from 0 to 4 for the images in a field going down. But, for some reason, the 0th image gets pasted and not the third in the field.
I want it to paste the images in the order of values in the slider with each click and not skip to zero.