J
Joao Cruz Malhao
Guest
So im trying to add walk animations to an NPC, somehow using the "moveX" "moveY" and syncing the angle to its appropriate walk animation, (npc_walk_up, etc) just dont know how to code it. Considering im still fairly new could i have a tip or help? Thank you.
Code:
if(counter >= room_speed *3){
var change = choose(0,1);
switch(change){
case 0: state = states.idle
case 1:
my_dir = irandom_range(0,359);
moveX = lengthdir_x(spd, my_dir);
moveY = lengthdir_y(spd, my_dir);
counter = 0;
}