Sound with Fun

Any information about the fun attribute is given here.

Moderator: FranchuFranchu

Post Reply
User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1655
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone: Moto Z Force Droid

Sound with Fun

Post by KINGTUT10101 » Sun Nov 05, 2017 5:16

Would it be possible to make a building play a sound using fun?

User avatar
CommanderABab
Inhabitant of a Multiverse
Reactions:
Posts: 5728
Joined: Tue Jun 07, 2016 21:12
Plugins: Show
Version: Beta

Re: Sound with Fun

Post by CommanderABab » Sun Nov 05, 2017 5:19

That might get out of hand very quickly!
486486Currently using 486. 486 What's new? :)
Urban rails, search!
:)

Telegram - t.me/
🆎️🆎️🆎️🆎️Commander🆎️🆎️

User avatar
Lobby
Developer
Reactions:
Posts: 2946
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Sound with Fun

Post by Lobby » Sun Nov 05, 2017 13:02

Sure, will be added:

Code: Select all

[
  {
    "id":"$fun_soundtest_sound00",
    "type":"sound",  // Type sound
    "file":"sound.ogg",  // Sound file in same directory
    "volume":1.0  // Default is 1.0
  },
  {
    "id":"$fun_soundtest_usage00",
    "type":"decoration",
    ...
    "on click fun":[
      {
        "actions":[
          {"type":"play","id":"$deco_soundtest_sound00"}  // Play sound
        ]
      }
    ]
  }
]
...Have a nice stay

User avatar
TheFennekin
Inhabitant of a Solar System
Reactions:
Posts: 1793
Joined: Thu Aug 24, 2017 11:17
Location: Here
Plugins: Show
Version: Beta
Phone: Samsung Galaxy Tab4

Re: Sound with Fun

Post by TheFennekin » Sun Nov 05, 2017 13:12

So the music file will come with your files? You are just gonna choose a music file?
Who wants a tower that will not eat your plugin space?!

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4710
Joined: Mon Jul 04, 2016 18:49
Location: Poland
Plugins: Show
Version: Beta
Phone: Huawei P9 lite mini

Re: Sound with Fun

Post by Matison55557 » Sun Nov 05, 2017 13:30

Kingtut, I can already guess what you are going to do with it... :)
Music in TT with fun and buildings playing samples
Ghoughpteighbteau tchoghs.

Developing a text-based city builder for pc. :mine

Help. Ants all over me. 🐜

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1655
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone: Moto Z Force Droid

Re: Sound with Fun

Post by KINGTUT10101 » Sun Nov 05, 2017 16:23

Yes. I was inspired by redstone and noteblocks from Minecraft.

User avatar
Matison55557
Inhabitant of a Universe
Reactions:
Posts: 4710
Joined: Mon Jul 04, 2016 18:49
Location: Poland
Plugins: Show
Version: Beta
Phone: Huawei P9 lite mini

Re: Sound with Fun

Post by Matison55557 » Sun Nov 05, 2017 16:31

That's what I thought too.
Ghoughpteighbteau tchoghs.

Developing a text-based city builder for pc. :mine

Help. Ants all over me. 🐜

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1655
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone: Moto Z Force Droid

Re: Sound with Fun

Post by KINGTUT10101 » Mon Nov 06, 2017 1:42

Yes, but now we can do it with fun.

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1655
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone: Moto Z Force Droid

Re: Sound with Fun

Post by KINGTUT10101 » Sat Nov 11, 2017 0:52

I've noticed that the pitch of a sound changes with every use. Could this be fixed @Lobby

User avatar
Lobby
Developer
Reactions:
Posts: 2946
Joined: Sun Oct 26, 2008 12:34
Plugins: Show
Version: Beta
Phone: S7 edge

Re: Sound with Fun

Post by Lobby » Sat Nov 11, 2017 0:59

Wow, you're good. I forgot about that... it's used to avoid that same samples sum up to a loud noise.
...Have a nice stay

User avatar
KINGTUT10101
1,000,000 inhabitants
Reactions:
Posts: 1655
Joined: Thu Jul 07, 2016 22:50
Location: 'Merica
Plugins: Show
Version: Beta
Phone: Moto Z Force Droid

Re: Sound with Fun

Post by KINGTUT10101 » Sat Nov 11, 2017 4:33

There's also a crackling sound that occurs sometimes

Post Reply

Return to “Fun attribute”

Who is online

Users browsing this forum: No registered users and 1 guest