Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //An attempt at a script that causes an FFC to move in a specified direction at a
- //specified speed for a specified distance after a specified item has been used
- //while standing on a specified FFC. In short: A gate that lifts after playing the whistle
- //on specific spot. The FFC is also solid until it moves, after which it becomes overhead.
- bool StandingHere;
- bool PlayedSong;
- ffc script WhistlePad{
- void run(){
- if (Link->X == this->X &&
- Link->Y == this->Y);
- {
- StandingHere = true;
- }
- Waitframe();
- }
- }
- //--------------------------------------------
- ffc script LiftingGate
- {
- void run()
- {
- int ReqSong;
- //int Disx;
- int Disy;
- //int Velx;
- float Vely;
- int RmblSFX;
- while(true){
- if (StandingHere == true){
- if (UsingItem(ReqSong)){
- if (Disy >= 16){
- this->Vy = Vely;}
- }}Waitframe();}
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement