Coolgamer012345

Untitled

May 14th, 2015
242
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.23 KB | None | 0 0
  1.  
  2. ffc script CG_EndlessPits
  3.  
  4. {
  5. void run(int SCRIPT_PIT_FLAG, int RoomEnterX, int RoomEnterY, int PitDamage, int FallingTile)
  6. {
  7.  
  8. while(true)
  9. {
  10. if(ComboFI( (Link->X + 8), (Link->Y + 12), SCRIPT_PIT_FLAG ) == true || ComboFI( (Link->X + 8), (Link->Y + 14), SCRIPT_PIT_FLAG ) == true)
  11. {
  12. Link->CollDetection = false;
  13.  
  14. Screen->FastTile(2, Link->X, Link->Y, FallingTile, 6, OP_OPAQUE);
  15. //Screen->DrawTile(2, Link->X, Link->Y, FallingTile, 1, 1, 6, - 1, - 1, 0, 0, 0, 0, true, OP_OPAQUE);
  16. Waitframes(15);
  17. Game->PlaySound(1);
  18. Screen->FastTile(2, Link->X, Link->Y, FallingTile + 1, 6, OP_OPAQUE);
  19. Waitframes(15);
  20.  
  21. Screen->FastTile(2, Link->X, Link->Y, FallingTile + 2, 6, OP_OPAQUE);
  22. Waitframes(15);
  23.  
  24. Screen->FastTile(2, Link->X, Link->Y, FallingTile + 3, 6, OP_OPAQUE);
  25. Waitframes(15);
  26.  
  27. Link->X = RoomEnterX;
  28. Link->Y = RoomEnterY;
  29.  
  30. Link->CollDetection = true;
  31. Link->HP -= (PitDamage * 16);
  32.  
  33. }
  34. Waitframe();
  35. }
  36. }
  37. }
  38.  
  39. //bool ComboFI(int x, int y, int flag)
  40. //void DrawTile(int layer, int x, int y, int tile, int blockw, int blockh, int cset, int xscale, int yscale, int rx, int ry, int rangle, int flip, bool transparency, int opacity);
Advertisement
Add Comment
Please, Sign In to add comment