I tried:
runtime.objects.MySlider.value = newValue;
but that didn't work.
Develop games in your browser. Powerful, performant & highly capable.
This is a common mistake confusing object types and instances. You usually need a call to getFirstInstance(). See the Learn JavaScript in Construct tutorial series which covers the basics like this.
getFirstInstance()
thanks
const mySliderInstance = runtime.objects.MySlider.getFirstPickedInstance(); mySliderInstance.value = newValue;
worked