Gamestudio Links
Zorro Links
Newest Posts
Newbie Questions
by fairtrader. 12/06/23 11:29
Zorro Trader GPT
by TipmyPip. 12/04/23 11:34
Square root rule
by Smallz. 12/02/23 09:15
RTest not found error
by TipmyPip. 12/01/23 21:43
neural function for Python to [Train]
by TipmyPip. 12/01/23 14:47
Xor Memory Problem.
by TipmyPip. 11/28/23 14:23
Training with command line parameters
by TipmyPip. 11/26/23 08:42
Combine USD & BTC Pairs In Asset Loop
by TipmyPip. 11/26/23 08:30
AUM Magazine
Latest Screens
A psychological thriller game
SHADOW (2014)
DEAD TASTE
Tactics of World War I
Who's Online Now
7 registered members (fairtrader, Quad, miwok, Martin_HH, AndrewAMD, alibaba, dpn), 581 guests, and 0 spiders.
Key: Admin, Global Mod, Mod
Newest Members
fairtrader, hus, Vurtis, Harry5, KelvinC
19019 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
animated gun #287243
08/30/09 21:55
08/30/09 21:55
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
i have expend a lot of hours trying to make the next:

1-when i clic the gun shot ( i did it)
2-inmediatly the bullet is created the "shoot" animation of the weapon run (i did it)

But i need that my program dont let the player shot another bullet until the "shoot" animation is 100% completed.

I can shot and run the shoot animation. But if the player accidentaly or intentionally clic again, while the "shoot" animation is not yet finished, the freaking gun shoot again.

thanks

Re: animated gun [Re: Erick_Castro] #287353
08/31/09 15:27
08/31/09 15:27
Joined: Nov 2008
Posts: 946
T
the_clown Offline
User
the_clown  Offline
User
T

Joined: Nov 2008
Posts: 946
Define a variable that is set to 1 at the beginning of the animation cycle and that is set to 0 at the end of the animation;
Then allow only shooting input if the variable is not 1.

Re: animated gun [Re: the_clown] #287392
08/31/09 19:20
08/31/09 19:20
Joined: Mar 2009
Posts: 207
E
Erick_Castro Offline OP
Member
Erick_Castro  Offline OP
Member
E

Joined: Mar 2009
Posts: 207
i thought that before, friend. I will try. After , if it works, i will publish the code.

thanks


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