why sprite keep print even though i just click one?

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By potatobanana

so i set sprite for every move i make, but sprite keep print even though i just click once, its normal or not? how to fix if not normal?
for more detail:
here my video https://youtu.be/YIwkxVwDCH0

sorry for my broken eng.

:bust_in_silhouette: Reply From: TyTYctA

Hi,
The _process function is called every frame.
print(sprite_direction) in _process function is also called every frame.

It is normal, no need to fixing.

this night your my hero, thank you for answer all my question, so it normal, when i not move sprite still will printing input?

potatobanana | 2019-03-06 15:22

print(sprite_direction) is print value of sprite_direction. It does not relate to moving sprite.
So, you do not move sprite, print(sprite_direction) still print value every frame

you can check print funcion is printing or not by pressing Clear button or moving slider of output up then monitor it. If the slider moves up, the print function continue printing value.

TyTYctA | 2019-03-07 00:39

thank you very much, now i fully understand . you really helpful.

potatobanana | 2019-03-07 03:09