Hello,
How can I make it that only ( -10 ) are deducted when touching?
The whole life is always deducted from it.
///////////////////////////////////////////////
action health_taker()
{
while (!player) {wait (1);}
while (1)
{
if (vec_dist(player.x, my.x) < 200)
players_health -= 2 * time_step;
wait (1);
}
}
///////////////////////////////////////////////
Thank you...