I want when I press the (k) my player open a door for distance but not working
action door_open { if(key_k==0) { my.pan += 8 * time; wait(1); } if (key_k ==1) { my.pan -= 8 * time; wait(1); } } how I do move an entiti for distance with pressing a botton