Jump to content

Photo

play SFX when a FFC touches a changer


  • Please log in to reply
16 replies to this topic

#16 Mero

Mero

    Touch Fluffy Tail

  • Banned
  • Real Name:Tamamo No Mae
  • Location:Rainbow Factory

Posted 10 November 2011 - 05:37 PM

CODE
ffc script SoundChanger{
    void run(int sound){
        while(true){
            for(int i; i < 32; i++){
                ffc f = Screen->LoadFFC(i+1);
                if(f == this) continue;
                if(f->X != this->X) continue;
                if(f->Y != this->Y) continue;
                Game->PlaySound(sound);
            }
            Waitframe();
        }
    }
}


Try this one Avataro.

#17 Avaro

Avaro

    o_o

  • Members
  • Real Name:Robin
  • Location:Germany

Posted 11 November 2011 - 07:57 AM

Ok I think I know a bug. The sfx will play ONLY, if the moving ffc's starting position overlaps one changer with the script. If the starting position does not overlap anything, the script doesn't work.

I hope you don't mind if I use it too, guys!

edit: don't mind, I am wrong. I don't understand why, but on some screens it works, on some screens it's not working.

Demo quest: http://www.mediafire...bcmcurv118o9fan
Can anyone find out why it's not working? I did nothing wrong. (RC2)

Edited by Avataro, 11 November 2011 - 12:12 PM.



1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users