[Ajuda] Animar Actor
#1

PHP код:
New Actor[3];
Actor[0] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
Actor[1] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
Actor[2] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);
ApplyActorAnimation(Actor, "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0); Ao adicionar dб: 
error 035: argument type mismatch (argument 1)

Essa й a melhor forma de criar? como arrumo o argumento?
Reply
#2

PHP код:
new Actor[3]; 

for(new 
id; id < 3; id++)
  
Actor[id] = CreateActor(179, 316.1, -134.0, 999.6, 90.0);

ApplyActorAnimation(Actor[0], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
ApplyActorAnimation(Actor[1], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0);
ApplyActorAnimation(Actor[2], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0); 
Reply
#3

Blz Luan, mas como eu adiciono mais Actor, porque ali tem 1 actor apenas.
PS: Quero 3 actors e poder designar um anim para cada.
Reply
#4

PHP код:
New Actor[3]; 
Actor[0] = CreateActor(179, 316.1, -134.0, 999.6, 90.0); 
Actor[1] = CreateActor(179, 316.1, -134.0, 999.6, 90.0); 
Actor[2] = CreateActor(179, 316.1, -134.0, 999.6, 90.0); 
for(new 
i = 0; i < sizeof(Actor); i++) { ApplyActorAnimation(Actor[i], "DEALER", "shop_pay", 4.1, 0, 0, 0, 0, 0); } 
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)