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
2 registered members (Grant, AndrewAMD), 911 guests, and 9 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
slow motion sounds #348278
11/24/10 18:18
11/24/10 18:18
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Is it passable to play sounds in slow motion?
I already tryed it with "time_factor", but ofcourse it doesn`t work (how should it?).
Doese anybody has an idea how to do this (When it`s even passable...)



Re: slow motion sounds [Re: Random] #348281
11/24/10 18:35
11/24/10 18:35
Joined: May 2009
Posts: 5,365
Caucasus
3run Offline
Senior Expert
3run  Offline
Senior Expert

Joined: May 2009
Posts: 5,365
Caucasus
This use to work with C-SCRIPT should work with LITE-C I guess...
Code:
my._frame = 0;
if(my._frame < 80)
{
	ent_animate(my,"death",my._frame,ANM_CYCLE);
	my._frame += 3 * time_step;
}
if(my._frame > 15)
{
	if(time_factor < 1){time_factor += 0.2 * time_step;}
}
else
{
	time_factor = 0.02;
}




Looking for free stuff?? Take a look here: http://badcom.at.ua
Support me on: https://boosty.to/3rung
Re: slow motion sounds [Re: 3run] #348283
11/24/10 18:49
11/24/10 18:49
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
@3run
he wants to play sounds in slow motion, not the game wink
I guess you could use programs like audacity to make a normal sound, and a slowed down sound, then if your game is in slow motion, you can use the slowed down sounds wink


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: slow motion sounds [Re: alibaba] #348284
11/24/10 19:05
11/24/10 19:05
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
You can use snd_tune to modify a playing sound - change the frequency for the desired slow motion effect.
That's better than using a different sound file, as you can change the frequency in real time and synchronized to your slow motion.

Last edited by the_clown; 11/24/10 19:07.
Re: slow motion sounds [Re: alibaba] #348285
11/24/10 19:05
11/24/10 19:05
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
alibaba thats the perfect idea grin
And 3run;
Use this for a slow motion action;

if(...)
{
time_factor = 0.1;
}else{
time_factor = 1;
wait(1);
}
}


short but good wink



Re: slow motion sounds [Re: Random] #348289
11/24/10 19:25
11/24/10 19:25
Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
MasterQ32 Offline
Expert
MasterQ32  Offline
Expert

Joined: Nov 2007
Posts: 2,568
Germany, BW, Stuttgart
you can use time_factor!
Code:
var h_slomo = snd_play(yoursound,100,0);
while(1)
{
    snd_tune(h_slomo,100,100 * time_factor,0);
    wait(1);
}




Visit my site: www.masterq32.de
Re: slow motion sounds [Re: MasterQ32] #348290
11/24/10 19:26
11/24/10 19:26
Joined: May 2008
Posts: 2,113
NRW/Germany
alibaba Offline
Expert
alibaba  Offline
Expert

Joined: May 2008
Posts: 2,113
NRW/Germany
Wow richi, now thats a good idea !


Professional Edition
A8.47.1
--------------------
http://www.yueklet.de
Re: slow motion sounds [Re: alibaba] #348291
11/24/10 19:29
11/24/10 19:29
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
brillient!




Moderated by  HeelX, Lukas, rayp, Rei_Ayanami, Superku, Tobias, TWO, VeT 

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