The button follows the cursor
Hey everyone,
I am trying to create a button that follows the mouse cursor and returns to its original position when the mouse goes out (mouse out) of a certain object.
I used the variable "Timer" to create a start trigger with the following values: Timer+0.1, an infinite repeat of 0.01 sec. Then I created a detect trigger that detects this button on $MouseX and $MouseY, but I do not understand how it returns to its original position.
There is a reference below to better illustrate what I am trying to achieve: