I’ve created a simple clicker game and want to add feedback when players click something. My idea is to have the object scale up then back down, and while this mostly works, if a player clicks fast enough, the sprite will become massive. Any ideas on how to make this work?
Or you can set a flag saying “character_is_scaling” to true, and if they click again while that is still going on, don’t allow further scaling until it has finished with an “if character_is_scaling:” test on click. You can set the flag to false once the scaling up and down is completed.
I think the clamping would work best though, but rapid clicking will keep the character large, I suppose it depends how you want the mechanic to work.