I am trying to set my game up so every time the player presses "Z" the sprite size is reduced by half.
So if the initial sprite size is 64px and they press "Z", it should become 32px. If they press it again the size should become 16px, then 8px, then 4px, etc. etc.
The issue is that when I set scale-0.5 on keypress it reduces from 64px to 32px, but when I press it again it does not reduce again.
I'm assuming it is only reducing it once because on the second press the argument is looking at the initial size and saying "okay it is already half the size" so it doesn't continue to reduce.
My problem is that I want it to reduce the CURRENT size by half, not the initial size.
Hopefully this makes sense.
Thanks in advance for the help!