Gamestudio Links
Zorro Links
Newest Posts
NOMAX undeclared identifier.
by Petra. 01/09/26 21:12
Sam Foster Sound | Experienced Game Composer for Hire
by titanicpiano14. 01/07/26 15:14
Zorro locks DLL
by jcl. 01/07/26 13:33
zorro with ccxt?
by qin. 01/07/26 07:50
The new evaluation system
by jcl. 01/05/26 08:50
AUM Magazine
Latest Screens
Rocker`s Revenge
Stug 3 Stormartillery
Iljuschin 2
Galactic Strike X
Who's Online Now
3 registered members (Quad, LucasJoshua, AndrewAMD), 5,851 guests, and 14 spiders.
Key: Admin, Global Mod, Mod
Newest Members
Namitha_NN, Syndrela, agasior, mosfet, MonsterX
19188 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