Hi! Thank you very much!
I am trying to create a slider to control the speed of an animation. I want to use the “Drag Me” custom rule with the rectangle shape, and I want the rectangle to be draggable only within a specific vertical range. Here’s what I have in the code for the rectangle:
When Self is Pressed
Check once if Self_y-position < 600 and Self_y-position > 200
The problem occurs when the slider gets dragged to the bottom or the top of the range. It stops working. I understand that at the bottom, the y-pos is now equal to 200 (or at the top, it’s equal to 600) and therefore the Check Once returns “false” and the Drag Me code won’t run.
I’ve tried a few things to get around this, none of which worked. Can anyone help me figure this out?
Thanks, and Happy Holidays!