Gamestudio Links
Zorro Links
Newest Posts
AlpacaZorroPlugin v1.3.0 Released
by kzhao. 05/22/24 13:41
Free Live Data for Zorro with Paper Trading?
by AbrahamR. 05/18/24 13:28
Change chart colours
by 7th_zorro. 05/11/24 09:25
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,397 guests, and 7 spiders.
Key: Admin, Global Mod, Mod
Newest Members
AemStones, LucasJoshua, Baklazhan, Hanky27, firatv
19055 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Page 1 of 2 1 2
[Newton]sound! #58771
11/11/05 18:09
11/11/05 18:09
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
Have can i add engine sound to newton car?
with media_play is'nt working for me!!!

Last edited by HackerL; 11/12/05 12:31.

Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: [Newton]sound! *DELETED* [Re: HackerL] #58772
11/13/05 20:37
11/13/05 20:37
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
Post deleted by HackerL


Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: [Newton]sound! [Re: HackerL] #58773
11/13/05 21:01
11/13/05 21:01
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
Okey i used media_loop! But how can i stop it when i realese key!
Quote:

if(key_cuu)
{
my.carEngineTorque = my.car_maxToque;
fps_max = 50; // limit the frame rate to 50 fps
media_loop ("engine.wav", null, 100);
}



Script is here! When i press CUU key sound starts playing but when i realase i need to stop engine sound!!!
And when i press key ENGINE sound starts about 100 and 100 times!

Last edited by HackerL; 11/13/05 21:07.

Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: [Newton]sound! [Re: HackerL] #58774
11/14/05 12:02
11/14/05 12:02
Joined: Mar 2005
Posts: 514
Brazil
Carloos Offline
User
Carloos  Offline
User

Joined: Mar 2005
Posts: 514
Brazil
//First, declare your sound :

sound engine_wav = <engine.wav>;

// Then, use ent_playloop to play your sound : ( I use this code in my NewtonVehicle Function, dont know if is the right place, but it works.

var engine_handle;
engine_handle = ent_playloop (my, engine_wav, 50);

// Finally, modulate your engine sound with your engine rpm :

snd_tune (Engine_handle, 50,50,0 );

// To make the sound disappear, you can simple troggle its volume to 0 ( Zero ), the first value : snd_tune(Engine_Handle,vol, freq, bal)

Good luck.

Re: [Newton]sound! [Re: Carloos] #58775
11/14/05 12:33
11/14/05 12:33
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
i dont understand it is working like media_loop i dont now how can i stop it! and when i press cud button its again starting hundred times! i just need to play sound when i hold the button!

Last edited by HackerL; 11/14/05 12:51.

Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: [Newton]sound! [Re: HackerL] #58776
11/14/05 14:49
11/14/05 14:49
Joined: Mar 2005
Posts: 514
Brazil
Carloos Offline
User
Carloos  Offline
User

Joined: Mar 2005
Posts: 514
Brazil
Maybe


if(key_cuu)
{
my.carEngineTorque = my.car_maxToque;
fps_max = 50; // limit the frame rate to 50 fps
media_loop ("engine.wav", null, 100);
}
Else
{
media_loop ("engine.wav", null, 0);
}

Re: [Newton]sound! [Re: Carloos] #58777
11/14/05 16:30
11/14/05 16:30
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
Nop!!
but my game is starting! And then MY game shuts down!! WHAT can i do?


Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Re: [Newton]sound! [Re: HackerL] #58778
11/14/05 18:41
11/14/05 18:41
Joined: Mar 2005
Posts: 514
Brazil
Carloos Offline
User
Carloos  Offline
User

Joined: Mar 2005
Posts: 514
Brazil
remove the last code you entered in SED then save and try to run your game again

Re: [Newton]sound! [Re: Carloos] #58779
11/14/05 18:41
11/14/05 18:41
Joined: Mar 2005
Posts: 514
Brazil
Carloos Offline
User
Carloos  Offline
User

Joined: Mar 2005
Posts: 514
Brazil
Or better, put the error message here, so we can help you better.

Re: [Newton]sound! [Re: Carloos] #58780
11/14/05 19:24
11/14/05 19:24
Joined: Aug 2005
Posts: 176
Latvia
HackerL Offline OP
Member
HackerL  Offline OP
Member

Joined: Aug 2005
Posts: 176
Latvia
there arent any error messages ! Games starts and then SHUTDOWNS!


Now i am working on game NISSAN CHALLENGE! My home page is http://raivucis.ilva.lv
Page 1 of 2 1 2

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