Play loop sounds from a node

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Play loop sounds from a node

by burli » Fri May 06, 2016 12:02

Currently it is only possible to play a sound from a position or a loop sound from an object. But what if I want to play a loop sound from a node like a torch? Sound should start if node is placed and stopped it the node is removed.

I think I can place an object at the same position to handle the sound, but what about it a loop sound can be attached to a node?
 

Thomas-S
Member
 
Posts: 62
Joined: Sun Sep 06, 2015 12:23
GitHub: Thomas--S
IRC: Thomas-S
In-game: Thomas-S

Re: Play loop sounds from a node

by Thomas-S » Sat May 07, 2016 13:04

 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Play loop sounds from a node

by burli » Sat May 07, 2016 16:31

If I understand this code positional sounds can be looped. Hm, then there is something wrong in the wiki and the Lua API

I will try it. Thx
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Play loop sounds from a node

by burli » Sat May 07, 2016 18:27

OK, it's working, but not as good as I want. I need to "store" the sounds in the map. That's what I have feared

But if this feature is now implemented someone has to edit the wiki. I can't, I don't have access to the dev wiki

Edit: or I can use LBMs... hmmm
 

blert2112
Member
 
Posts: 244
Joined: Sat Apr 25, 2015 04:05
GitHub: blert2112

Re: Play loop sounds from a node

by blert2112 » Sat May 07, 2016 21:49

Look at the 'Fire' mod from MintestGame.
 

User avatar
burli
Member
 
Posts: 1313
Joined: Fri Apr 10, 2015 13:18

Re: Play loop sounds from a node

by burli » Sun May 08, 2016 05:28

My solution is similar, but I will usw LBMs to "ignite" the fire after Server restart
 


Return to Minetest Features

Who is online

Users browsing this forum: No registered users and 6 guests

cron