Value of Variable not affecting Sprite

.
I have a variable set to stop/start a Sprite rotating
And a second variable to start/stop the Sprite bullet movement.

The isRotating variable isn’t stopping the rotation. However-
The isMoving variable does work to toggle movement on and off.

When I touch the screen I want the Sprite to move and rotate. When I touch again I want the Sprite to stop rotating and stop moving.

Only the movement variable is working.

I’m using values 0 and 1 as booleans. One is to turn it on and 0 is to turn it off.

I’ve also got two text box that shows the number of the variables. The numbers change like they’re supposed to but only one behavior is affected

Any ideas what could be wrong?
Thanks,

1 Like