Gamestudio Links
Zorro Links
Newest Posts
Executing Trades on Next Bar Open
by Zheka. 06/20/24 14:26
Lapsa's very own thread
by rki. 06/19/24 11:27
A simple game ...
by VoroneTZ. 06/18/24 10:50
Face player all the time ...
by bbn1982. 06/18/24 10:25
Zorro Beta 2.61: PyTorch
by jcl. 06/10/24 14:42
New FXCM FIX Plugin
by flink. 06/04/24 07:30
AUM Magazine
Latest Screens
The Bible Game
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Who's Online Now
0 registered members (), 1,227 guests, and 2 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Mino, squik, AemStones, LucasJoshua, Baklazhan
19061 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Need help with an reload timer #242978
12/26/08 21:02
12/26/08 21:02
Joined: Mar 2007
Posts: 112
MikeS Offline OP
Member
MikeS  Offline OP
Member

Joined: Mar 2007
Posts: 112
hi guys, i need help with an reload timer.

I would like to run it on clientside, so the server doesnt need to work with it.

My problem is, all timer functions i tried , dont work the way i want it.

If i use a
wait(-5);

in the
Code:
function players_fired()

{

       if (connection == 2)

       {

               client_fired = 1;

 ************* wait (-5); **************

               client_fired = 0;

       }

       if (connection == 3)

       {

               server_fired = 1;

               wait (1);

               server_fired = 0;

       }


i am no longer possible to make anny move orders during the 5 seconds wait.

if someone has an idea, plz help me,
ill send u my whole code per PM then, so u c what i mean.

Thanks guys.


Last edited by MikeS; 12/26/08 21:40.
Re: Need help with an reload timer [Re: MikeS] #242983
12/26/08 22:00
12/26/08 22:00
Joined: Mar 2007
Posts: 112
MikeS Offline OP
Member
MikeS  Offline OP
Member

Joined: Mar 2007
Posts: 112
Ok, i solved it,

I used a beep between each count of the timer.

the beep slowed down everything and worked like a wait(-1);

so the movement was judder...

thanks


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