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
10 Secs #161864
10/18/07 20:01
10/18/07 20:01
Joined: Oct 2007
Posts: 42
Minnesota, USA
Techd Offline OP
Newbie
Techd  Offline OP
Newbie

Joined: Oct 2007
Posts: 42
Minnesota, USA
Does of anyone no of a script that uses a counter or timer that can increase a value every 10 secs? Say I want a sound to play every 10 secs on timed bases and if key is pressed the timer/counter starts over.


Life is what you make it just like Games!
Re: 10 Secs [Re: Techd] #161865
10/18/07 20:50
10/18/07 20:50
Joined: Apr 2005
Posts: 3,076
Germany, NRW
rvL_eXile Offline

3D Artist
rvL_eXile  Offline

3D Artist

Joined: Apr 2005
Posts: 3,076
Germany, NRW
Try this

Code:


Var X;
Var Value;
Var Counter_Sec;

Function Counter
{
X%1; //Or Try "2"

If(key_ctrl==1)
{
X=1;
}
If(X==1)
{
counter_Sec+=1;
wait(-1);

}

}

Function Waiter
{
If(X==1)
{
Value+=1;
wait(-10);
}
}



Not tested... But it should work !

cYa Sebastian


Tutorials:
[Blender]Terrain creation ENG/GER
[Blender]Low Poly Tree Modeling
[GIMP]Create a Texture for Terrains
CLICK HERE


Re: 10 Secs [Re: rvL_eXile] #161866
10/18/07 22:36
10/18/07 22:36
Joined: Oct 2007
Posts: 42
Minnesota, USA
Techd Offline OP
Newbie
Techd  Offline OP
Newbie

Joined: Oct 2007
Posts: 42
Minnesota, USA
thanks! rvL_eXile


Life is what you make it just like Games!

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