Gamestudio Links
Zorro Links
Newest Posts
loading historical data 1st time
by AndrewAMD. 04/14/23 12:54
Trade at bar open
by juanex. 04/13/23 19:43
Bug in Highpass2 filter
by rki. 04/13/23 09:54
Adding Limit Orders For IB
by scatters. 04/11/23 16:16
FisherN
by rki. 04/11/23 08:38
AUM Magazine
Latest Screens
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Hecknex World
Who's Online Now
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 spiders.
Key: Admin, Global Mod, Mod
Newest Members
rki, FranzIII, indonesiae, The_Judge, storrealba
18919 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
ENABLE_FRICTION #338863
08/22/10 09:39
08/22/10 09:39
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
How do I make physical entity, play sound each time, when it touches whatever block or model? I try to use ENABLE_FRICTION, works good, but when object stops moving, sound is still playing...


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ENABLE_FRICTION [Re: 3run] #338870
08/22/10 10:26
08/22/10 10:26
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
do you mean the sound plays another time or the sound coninues playing until it finish?


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: ENABLE_FRICTION [Re: painkiller] #338872
08/22/10 10:34
08/22/10 10:34
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
Sound just needs to play one time, only when it impacts with anything.


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ENABLE_FRICTION [Re: 3run] #339063
08/24/10 09:48
08/24/10 09:48
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
Any idea guys?


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: ENABLE_FRICTION [Re: 3run] #339068
08/24/10 10:48
08/24/10 10:48
Joined: Aug 2009
Posts: 1,438
Spain
painkiller Offline
Serious User
painkiller  Offline
Serious User

Joined: Aug 2009
Posts: 1,438
Spain
maybe

if(event_type==EVENT_FRICTION)
{
if(!snd_playing(yoursound_handle)) yoursound_handle=snd_play(yoursound, 100, 0);
}else{
if(snd_playing(yoursound_handle)) snd_stop(yoursound_handle);
}


3D Gamestudio A8 Pro
AMD FX 8350 4.00 Ghz
16GB RAM
Gigabyte GeForce GTX 960 4GB
Re: ENABLE_FRICTION [Re: 3run] #339069
08/24/10 11:05
08/24/10 11:05

C
chris_oat
Unregistered
chris_oat
Unregistered
C



maybe instead of media_play or snd_play you use, media_loop or snd_loop?
I use myself the Enable Friction to let the empty bullets and mag once they fall to the ground play a sound. and it works good. (sound plays only once)

Re: ENABLE_FRICTION [Re: painkiller] #339070
08/24/10 11:06
08/24/10 11:06
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline OP
Senior Expert
3run  Offline OP
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
OK, thank you one more time painkiller laugh


Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung

Moderated by  HeelX, Spirit 

Gamestudio download | chip programmers | Zorro platform | shop | Data Protection Policy

oP group Germany GmbH | Birkenstr. 25-27 | 63549 Ronneburg / Germany | info (at) opgroup.de

Powered by UBB.threads™ PHP Forum Software 7.7.1