|Topic was automatically imported from the old Question2Answer platform.
My idea for my game is that the player can switch to different modes and I am planning to have different sprites for the player to switch to. I tried doing Input.is_action_pressed to switch to a different sprite texture and when I press that button again it returns it back to the previous texture. The problem I am having is that when I press it, the texture switches back and forth too fast. I think the problem is because the inputs are under the _physics_process(delta) function. Is there any way for me to switch to a different texture once?
Sorry if my question is already answered or it seems stupid. I couldn’t find an answer on google and I am pretty new to game development. Thanks.