d = vec_dist (my.x,you.x); my.health -= (1000 - d) * some_factor_to_control_the_strength * (d < 1000);
Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy
oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de