I would want to make a moving sprite that is clickable

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

I already found a way to make a clickable sprite using an Area2D and a CollisionShape2D and a sprite, all i now need to do is to make it move randomly

:bust_in_silhouette: Reply From: BodaMat

You can move a sprite in different ways. Just always set translation or use the lerp function. I think in this situation lerp would be better.
Set the first position where a sprite is it and the last position set randomly.

I hope these links help: