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
3 registered members (AndrewAMD, Grant, Neb), 908 guests, and 6 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
late reaction... #386401
11/02/11 12:52
11/02/11 12:52
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
solved!

I had to set proc_mode = PROC_LATE;
her;

Quote:
if(you.got_hit == 1)
{
you.health -= player_sword_damage;
proc_mode = PROC_LATE;
enemy_handle_pain_anim();
}


Last edited by Random; 11/02/11 12:56.


Re: late reaction... [Re: Random] #386407
11/02/11 14:06
11/02/11 14:06
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
hmmm, is there a function that kills function? grin
Like this;

Quote:
wait(1);
special kill all function before function

var i=integer(random(4));
switch(i)
{
case 0:
var death_percentage = 0;
while(death_percentage < 100)
{
ent_animate(my,NULL,0,0);
ent_animate(my,"die_a",death_percentage,NULL);
death_percentage += 3 * time_step;
wait (1);
}
case 1:
var death_percentage = 0;
while(death_percentage < 100)
{
ent_animate(my,NULL,0,0);
ent_animate(my,"die_b",death_percentage,NULL);
death_percentage += 3 * time_step;
wait (1);
}
case 2:
var death_percentage = 0;
while(death_percentage < 100)
{
ent_animate(my,NULL,0,0);
ent_animate(my,"die_c",death_percentage,NULL);
death_percentage += 3 * time_step;
wait (1);
}
case 3:
var death_percentage = 0;
while(death_percentage < 100)
{
ent_animate(my,NULL,0,0);
ent_animate(my,"die_d",death_percentage,NULL);
death_percentage += 3 * time_step;
wait (1);
}
}


maby??? grin



Re: late reaction... [Re: Random] #386408
11/02/11 14:10
11/02/11 14:10
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
proc_kill()

Re: late reaction... [Re: MrGuest] #386410
11/02/11 14:18
11/02/11 14:18
Joined: Feb 2010
Posts: 886
Random Offline OP
User
Random  Offline OP
User

Joined: Feb 2010
Posts: 886
Yes!!
Perfect!!
It works !!!



Re: late reaction... [Re: Random] #386443
11/03/11 00:26
11/03/11 00:26
Joined: Jul 2008
Posts: 1,178
England
M
MrGuest Offline
Serious User
MrGuest  Offline
Serious User
M

Joined: Jul 2008
Posts: 1,178
England
HAPPY BIRTHDAY! grin


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