I'm experiencing an issue with the zooming behavior of a sprite called "SpaceShip." I've implemented a resize button that enables the player to zoom in and out the "SpaceShip" based on touch input.
The code does exactly this, but the problem is that the initial touch on the SpaceShip always triggers the object to scale to 2 times its size before allowing further resizing. If we move it/scale in around a bit, a weird effect also coming. This behavior is undesirable, and I want the object to start resizing immediately without the initial jump to double scale.
Please help me fix the code. I'm a developer myself and still in the process of learning Construct 3 by reading other questions and answers. I've come this far, but this time I'm stuck trying to figure out how to use touch input for scaling. So, I asked for help before and received an amazing piece of code (Thanks to that user for providing the code).
drive.google.com/drive/folders/1GMGL7lDOz2LVptZfa0Mh20ekYWLpWvVB