What's wrong with this code?
Posted: Tue Jan 02, 2007 9:04 pm
I'm very confused.
I can't understand where is the error in this code:
That should make sini named actor move from the monster actor when closer than 150 pixels. It's not working
I can't understand where is the error in this code:
- Code: Select all
if(distance(x, y, monster.x, monster.y)<=150)
{
angle=direction(monster.x, monster.y, sini.x, sini.y); +180;
directional_velocity=2;
}
That should make sini named actor move from the monster actor when closer than 150 pixels. It's not working