When changing the bar's x and y, press the green flag to refresh its location. Press space to meow. When sliding further out of the bar, the variable will break limits. However, it corrects itself when let go.
Using this for my Lasers Vs Asteroids project. All code is written from scratch by me. Please credit @-Aspendurus for making this engine if you wish to use it.