hi
i am new to game studio and i am trying to understand how to use ent_blend funcion. I have one model that has one animation divided in three steps: A lifts the hand, B waves the hand (this is a loop) and finally C drops the hand.
I was getting a kind of "jump" when switching between animation parts (A to B and B to C) but I solved the translation between A and B with ent_blend, however i still get the B to C translation "jump". Looks like one frame is repeated. I think I dont fully understand the use of ent_blend, if anyone could point to a good (and simple) tutorial on this, it would be very much apreciated. thanks!
this is the code i am using to control the animation :
action Cuerpo(){
var speed = 7;
while(1){
if (key_x) {
p = 0;
while ( p <= 100 ){
p += speed * time_step;
ent_animate(my, "saludoA", p, ANM_ADD);
wait(1);
}
//blend to saludoB
p = 0;
while ( p <= 100 ){
p += 100 * time_step;
ent_animate(my, "saludoA", 100, 0);
ent_blend("saludoB", 0, p);
wait(1);
}
//inner cycle
while ( key_x ){
p = 0;
while ( p <= 100 ){ // exit on finish or on key up
p += speed * time_step;
ent_animate(my, "saludoB", p, ANM_CYCLE);
wait(1);
}
wait(1); // not really needed
}
//blend to saludoC
p = 0;
while ( p <= 100 ){
p += 50 * time_step;
ent_animate(my, "saludoB", 100, 0);
ent_blend("saludoC", 0, p);
wait(1);
}
// close
p = 0;
while ( p <= 100 ){
p += speed * time_step;
ent_animate(my, "saludoC", p, ANM_ADD);
wait(1);
}
}
wait(1);
}
}