Not likely the best way, but you could probably do something like this:

Code:

while (1)
{
if (vec_dist(nonmovingentity.x, player.x) > limit)
{
wait(1); // if non-moving entity is further than limit quants from player, wait
}

else
{
// stuff here for displaying text about the nonmovingentity entity
}
}



The "limit" variable is how close you can be at the most to activating the condition.


"You level up the fastest and easiest if you do things at your own level and no higher or lower" - useful tip My 2D game - release on Jun 13th; My tutorials