Сообщение от HolyDel
if keydown(2) then show_image=1
if keydown(3) then show_image=2
if keydown(4) then show_image=3
if show_image then drawimage img[show_image],x,y
|
Чтобы еще проще, можно так сделать:
pressed_key = getkey() - 48 ;49-57 -- ASCII коды для 1-9 соответственно
if pressed_key > 0 and pressed_key < 10 then
drawimage img[pressed_key], x, y
end if