1
我一直想讓一個NPC在我的情況下是一個殭屍,當然在我的遊戲中無法跟隨我。我正在使用以下腳本來移動我的角色我如何讓NPC在Gamemaker Studio 1.4中跟着我
if(keyboard_check(vk_left)){
sprite_index = spr_player;
x -= 4;
}
if(keyboard_check(vk_right)){
sprite_index = spr_player;
x+= 4;
}
if(keyboard_check(vk_down)){
sprite_index = spr_player;
y += 4;
}
NPC對象的名稱是(obj_zombie)。
這可能會得到更好的答案:https://gamedev.stackexchange.com/ –