Gamestudio Links
Zorro Links
Newest Posts
Change chart colours
by 7th_zorro. 05/11/24 09:25
Data from CSV not parsed correctly
by dr_panther. 05/06/24 18:50
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
3 registered members (AndrewAMD, degenerate_762, ozgur), 1,311 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Hanky27, firatv, wandaluciaia, Mega_Rod, EternallyCurious
19051 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Sound Trigger #189008
03/16/08 22:58
03/16/08 22:58
Joined: Mar 2008
Posts: 23
J
jmasterx Offline OP
Newbie
jmasterx  Offline OP
Newbie
J

Joined: Mar 2008
Posts: 23
Hello,

I'm making a game in wed where doors open from a distance, I'm using a template for the door triggers. I would need a sound to play when the trigger is activated. So my question is, how can i create a sound trigger so that when I press the activate key, it opens my doors and plays somewav.wav

thank you

Re: Sound Trigger [Re: jmasterx] #189009
03/17/08 16:14
03/17/08 16:14
Joined: Aug 2007
Posts: 1,922
Schweiz
Widi Offline
Serious User
Widi  Offline
Serious User

Joined: Aug 2007
Posts: 1,922
Schweiz
Maybe that helps:
Code:
 
SOUND* Kick_wav = "Kick.wav";

function your_trigger()
{
...your code
snd_play (Kick_wav ,Snd_vol,0);
}



Re: Sound Trigger [Re: Widi] #189010
03/17/08 17:23
03/17/08 17:23
Joined: Mar 2008
Posts: 23
J
jmasterx Offline OP
Newbie
jmasterx  Offline OP
Newbie
J

Joined: Mar 2008
Posts: 23
Hi,

Thank you very much for your reply, I'm new to this and everything else.... however, how could I implement it as an action for an entity like the templates kind of work so that I make a trigger_00 with a value of 1 and an entity with a sound trigger of 1 so when my trigger_00 activates, it turns on the sound trigger.... BTW i'm using WED to make my game...

Thanks


Moderated by  HeelX, rvL_eXile 

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