I have a general "if" condition with a comparative Y position for my enemy node, like:
if player.position.y < position.y:
do that
but I was think if it's possible to make more precise with numerical reference limitation, puting the distance between player position and enemy position with a certain limit; something like:
if player.position.y < 100(position.y):
do that
If it's possible, how could I write the code? Using clamp?