Hello there, I would like to ask about how to measure between 2 object with the same sprite.In general we can log/print or measure the distance between 2 object with different sprite (ex: sprite1 for player and sprite2 for ground) we can use floor(distance(player.x,player.y,ground.x,ground.y) but how to measure between same sprites?
ex: player has reached ground, then new ground sprite created again. How to measure between first ground and second ground.
Thanks.