oh btw i added two "Helps" in the title because i need to add 2 more words.
How can i do something like the "music box" from this game;
For example, if i hold an button, it plays music, if i stop holding, the music stops.
![]()
![]()
oh btw i added two "Helps" in the title because i need to add 2 more words.
How can i do something like the "music box" from this game;
For example, if i hold an button, it plays music, if i stop holding, the music stops.
![]()
![]()

I've decompiled that game, so I know exactly how it works.
The button has two values, A and B. A is how much the music box is wound (starts at 2000), while B is the unwinding cooldown time (sub 1 every tick when > 0, set to 10 while winding). When the mouse pointer is over the button, the left mouse key is pressed, and the Prize Corner camera is currently being viewed, 5 is added to A. A is set to 300 upon winding if it's < 300.
If A is > 0 and B is 0, 2-6 (depending on the night; 2 on Night 1 and 2, 3 on Night 3, 4 on Night 4, 5 on Night 5, 6 on Night 6 and 7) is subtracted from A every 5/100 of a second.
The music box sound itself plays on a loop on a channel. The volume of this channel is set to 0 at the start of the frame, when the monitor is put down, when the player isn't viewing any of the main area cameras (9-12), and when A is 0.




Just so you know, discussing decompiling CF2.5-made games here is probably going to be frowned upon by mods/admins...
No, i just want to do something similar.![]()

I had the feeling it might be.
The only reason it's frowned upon is because certain people distribute the .mfa files obtained by decompiling. I decompiled FNAF 1 and 2 because I wanted to learn how they were programmed, which was a big part of learning Fusion for me. I would never distribute the .mfa files.
I meant the "Repeat while the left mouse-key is pressed" condition.

Just as a note the latest update to Fusion 2.5 there are options for people to use to help them protect their files.

The security measures I heard about were effective. The Anaconda decompiler tool, the only one I know of, can't decompile Five Nights at Freddy's 3 (I personally haven't tried, but many others have). That game was released in March, so whatever changes were included in the current version of Fusion at the time did the trick. Someone was able to modify the decompiler to make it produce a .mfa, but without any frames (they couldn't get it to decompile any frame data).
The assets can't even be extracted from the latest version of the game (the asset extractor worked before on older versions of the same game), so I guess there were some more security updates since then.
Thanks everybody i got it to work![]()