Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //Two FFCs, one with this script, the other without.
- //The second ffc should be set as the 'Link' to the ffc without
- //the script in the ffc editor.
- //When Link collides with the other ffc (np script), he and this ffc (with the
- //script), will trade places.
- ffc script linkswap
- {
- void run()
- {
- int lx; int ly;
- while(1);
- {
- ffc otherf = Screen->LoadFFC9this->Link);
- if ( Abs(Link->X - otherf->X) < 8 )
- {
- if ( Abs(Link->Y - otherf->Y) < 8 )
- {
- lx = Link->X;
- ly = Link->Y;
- Link->X = this->X;
- Link->Y = this->Y;
- this->X = lx;
- this->Y = ly;
- }
- }
- Waitframe();
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement