How to stop a image from following the mouse

This is the code I have so far, when I click on “BlackJackImageHighlighed” twice it follows the mouse. I don’t know how to stop the image from following the mouse after clicking the “screen1”. Also when I would click on “screen1” I want the image to stay where I clicked"

Hi @spoonrogers,

Super cool way to capture the x and y of the mouse in App Lab.
I experimented with what I think your objective is HERE. Instead of nested events, I used variables to determine if the button moves or stays. Not sure if this is what you were asking.

Hope you will share your final game:)

~Michelle

Thank you, this is perfect for what I am looking for. I had to re-write all of it, it was very unorganized.