I have a projectile being fired, and previously used a timer to make it disappear, but I'm working on having different stats like speed and range. I've changed to using the following code to make my projectile only go a set distance from where it starts:
traveled = (self.global_position-origin)
if traveled.x >= bulletRange:
elif traveled.y >= bulletRange:
elif traveled.y <= -bulletRange:
elif traveled.x <= -bulletRange:
this results in a square basically, as shooting diagonally goes further. I would like it to feel like more of a circle and I'm not quite sure how to go about this.