Advertisement
Guest User

Untitled

a guest
Apr 16th, 2014
36
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. //An attempt at a script that causes an FFC to move in a specified direction at a
  2. //specified speed for a specified distance after a specified item has been used
  3. //while standing on a specified FFC. In short: A gate that lifts after playing the whistle
  4. //on specific spot. The FFC is also solid until it moves, after which it becomes overhead.
  5. bool StandingHere;
  6. bool PlayedSong;
  7.  
  8.  
  9. ffc script WhistlePad{
  10. void run(){
  11. if (Link->X == this->X &&
  12. Link->Y == this->Y);
  13. {
  14. StandingHere = true;
  15. }
  16. Waitframe();
  17. }
  18. }
  19.  
  20. //--------------------------------------------
  21.  
  22. ffc script LiftingGate
  23. {
  24. void run()
  25. {
  26. int ReqSong;
  27. //int Disx;
  28. int Disy;
  29. //int Velx;
  30. float Vely;
  31. int RmblSFX;
  32.  
  33.  
  34. while(true){
  35. if (StandingHere == true){
  36. if (UsingItem(ReqSong)){
  37. if (Disy >= 16){
  38. this->Vy = Vely;}
  39.  
  40.  
  41.  
  42. }}Waitframe();}
  43. }
  44. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement