Tales
Member
Hello!
I cant see "vk_shift" when I try draw keys txt.
I declare on Hero obj
KEYESQU = 'vk_shift';
I draw on MENU obj
draw_text(x+350,y+58+110,string(Hero.KEYESQU))
this works, no problem, the problem comes when I change the KEYESQU :
In the menu object I have:
if keyboard_check_pressed(vk_anykey) and touche17=3 {Hero.KEYESQU=chr(keyboard_lastkey);touche17=1}
I know one time I have a string and the other I have a chr, but the key still works in the game it a draw problem. I get confused with the passage from string to char. I already try different combinaison but I fail. What I forgot to see again "vk_shift" plz?
I cant see "vk_shift" when I try draw keys txt.
I declare on Hero obj
KEYESQU = 'vk_shift';
I draw on MENU obj
draw_text(x+350,y+58+110,string(Hero.KEYESQU))
this works, no problem, the problem comes when I change the KEYESQU :
In the menu object I have:
if keyboard_check_pressed(vk_anykey) and touche17=3 {Hero.KEYESQU=chr(keyboard_lastkey);touche17=1}
I know one time I have a string and the other I have a chr, but the key still works in the game it a draw problem. I get confused with the passage from string to char. I already try different combinaison but I fail. What I forgot to see again "vk_shift" plz?