Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ffc script eSwordEnemy{
- void run(int enemyID){
- int offset = 12;
- int tile = 414;
- int cset = 8;
- npc ghost = Ghost_InitAutoGhost(this,enemyID);
- Ghost_Data = GH_INVISIBLE_COMBO;
- eweapon e;
- Ghost_Waitframes2(this,ghost,true,true,10);
- while(true){
- if(!e->isValid()){
- e = CreateEWeaponAt(EW_SCRIPT1,Ghost_X,Ghost_Y);
- e->Tile = GH_BLANK_TILE;
- }
- e->X = ghost->X;
- e->Y = ghost->Y;
- if(Ghost_Dir == DIR_RIGHT)e->X += offset+1;
- else if(Ghost_Dir == DIR_LEFT)e->X -= offset;
- else if(Ghost_Dir == DIR_DOWN)e->Y += offset+1;
- else if(Ghost_Dir == DIR_UP)e->Y -= offset;
- e->Damage = ghost->Damage;
- e->Tile = GH_BLANK_TILE;
- e->Dir = Link->Dir;
- if(Ghost_Dir == DIR_DOWN) Screen->FastTile(3,e->X,e->Y,tile + Ghost_Dir,cset,OP_OPAQUE);
- else Screen->FastTile(0,e->X,e->Y,tile + Ghost_Dir,cset,OP_OPAQUE);
- Ghost_Waitframe2(this,ghost,true,true);
- }
- }
- }
Add Comment
Please, Sign In to add comment