Hi guys. I'm trying to learn animation and blending from the khmovement tutorial but it's giving me a hard time because I'm using the free version and it doesn't support wdl scripts. I'm now in the process of converting it to .c format but I keep running into problems. I'm still a beginner and don't know much about the engine so some things just seem impossible at the moment. Does anyone know if it has been converted already? Are there alternative tutorials for A7?
Here's one of the place I'm stuck on now.
function handle_movement() {
temp.x = -1000;
temp.y = 0;
if(key_w ==1) { temp.x = camera.pan; }
if(key_s ==1) { temp.x = camera.pan + 180; }
if(key_a ==1) { temp.x = camera.pan + 90; }
if(key_d ==1) { temp.x = camera.pan - 90; }
if(temp.x != 1000) { temp.y = 15 * time_step; }
my.move_x = fcos(temp.x, temp.y);
my.move_y = fsin(temp.x, temp.y);
c_move(my, nullvector, my.move_x, use_aabb | IGNORE_PASSABLE | GLIDE);
}
The engine keeps complaining about the temp. I decided to make it a vector using VECTOR* temp but then the engine is now complaining about my.move_x which is a synonym for skill22 not being a member of an entity.
Please, how do I modify this code? Where can I find movement tutorials meant for A7?