when executing the code in the create event in game maker studio 2:
sprite_index = Spr_Pacman_Right; //imagen del sprite pacman
image_speed = 0;//velocidad de imagen
image_index = 0;//indice de la imagen
v = 0; // variable de velocidad
all right but when executing the step event code:
if (keyboard_check(vk_right)){
direction = 0;
speed = v;
}
if (keyboard_check(vk_left)){
direction = 180;
speed = v;
}
if (keyboard_check(vk_up)){
direction = 90;
speed = v;
}
if (keyboard_check(vk_down)){
direction = 270;
speed = v;
}
the object on the screen does not move