Gleeok
11-19-2007, 04:12 AM
This has always confused me and I am still unsure of how to use it effectively.
Suppose I wanted an ffc script to trigger when Link is within 1 tile of the ffc in any direction. How would I do this using Abs(int x, int y)..?
If the ffc is at 48, 48 lets say, then if( (Abs(Link->X = this->X+8) >=24)&&(Abs(Link->Y = this->Y+8) >=24)){ It would trigger if link was closer than 16 pixels...?
...I really don't know how I came up with that just now.
Suppose I wanted an ffc script to trigger when Link is within 1 tile of the ffc in any direction. How would I do this using Abs(int x, int y)..?
If the ffc is at 48, 48 lets say, then if( (Abs(Link->X = this->X+8) >=24)&&(Abs(Link->Y = this->Y+8) >=24)){ It would trigger if link was closer than 16 pixels...?
...I really don't know how I came up with that just now.