Gamestudio Links
Zorro Links
Newest Posts
Zorro 2.70
by jcl. 09/29/25 09:24
optimize global parameters SOLVED
by dBc. 09/27/25 17:07
ZorroGPT
by TipmyPip. 09/27/25 10:05
assetHistory one candle shift
by jcl. 09/21/25 11:36
Plugins update
by Grant. 09/17/25 16:28
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
2 registered members (TipmyPip, AndrewAMD), 12,726 guests, and 5 spiders.
Key: Admin, Global Mod, Mod
Newest Members
krishna, DrissB, James168, Ed_Love, xtns
19168 Registered Users
Previous Thread
Next Thread
Print Thread
Rate Thread
Problems with animation of model #147932
08/14/07 20:17
08/14/07 20:17
Joined: Jul 2007
Posts: 19
Brazil
J
Jack_Dracon Offline OP
Newbie
Jack_Dracon  Offline OP
Newbie
J

Joined: Jul 2007
Posts: 19
Brazil
hi all,
i have a problem with collision between player and one any model, where the player pass of the model, ths model active the animation of other model, but i have a problem with the timer, because when i use the code for the model what have animate, this code works good, but when i use this code for the any model for activate the animation in other model, this works but not works like i want.
this is the code what i think have a problem:
_________________________________________________________________
my.skill1 +=2* time_step;
ent_animate(you, "model", my.skill1,anm_cycle);
_________________________________________________________________

Re: Problems with animation of model [Re: Jack_Dracon] #147933
08/16/07 14:20
08/16/07 14:20
Joined: Jul 2007
Posts: 19
Brazil
J
Jack_Dracon Offline OP
Newbie
Jack_Dracon  Offline OP
Newbie
J

Joined: Jul 2007
Posts: 19
Brazil
that's the code what i using for this...
_______________________________________________________________________________
function dist_car(){
while(player == null){wait(1);}
if(player == carro1){
if(vec_dist(carro1.x, me)>10000){
return (1);
}else{
return (5);
}
}
}
action act_Trigger
{
while(carro1 == null){wait(1);}
while(ptr_for_name(nome_do_modelo) == null){ wait(1);}
my.skill48 = handle(ptr_for_name(nome_do_modelo));
while(1){
if(dist_car() ==1){
you = ptr_for_name(my.skill48);
//time_smooth = 0.5;
my.frame = 2;
my.skill1 += my.frame*(time_step/16);
//ent_animate(me, string_a_ser_animada, my.skill1, anm_cycle);
ent_cycle("AnimationSet_gu",my.skill1);
}
wait(1);
}
}
________________________________________________
please anybody help me.
thanks


Moderated by  HeelX, Spirit 

Gamestudio download | 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