Install Steam
login
|
language
简体中文 (Simplified Chinese)
繁體中文 (Traditional Chinese)
日本語 (Japanese)
한국어 (Korean)
ไทย (Thai)
Български (Bulgarian)
Čeština (Czech)
Dansk (Danish)
Deutsch (German)
Español - España (Spanish - Spain)
Español - Latinoamérica (Spanish - Latin America)
Ελληνικά (Greek)
Français (French)
Italiano (Italian)
Bahasa Indonesia (Indonesian)
Magyar (Hungarian)
Nederlands (Dutch)
Norsk (Norwegian)
Polski (Polish)
Português (Portuguese - Portugal)
Português - Brasil (Portuguese - Brazil)
Română (Romanian)
Русский (Russian)
Suomi (Finnish)
Svenska (Swedish)
Türkçe (Turkish)
Tiếng Việt (Vietnamese)
Українська (Ukrainian)
Report a translation problem
Why not try setting a variable to a random integer. The range which the value can be pulled from should be the number of keys you want to be possibly used as a movement key.
You could then use that variable in an array of each of the possible keys (example: [a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u,v,w,x,y,z]) and set the movement key to be array[random_number].
If my way of explaining this seems confusing let me know and I will try and refine what I am attempting to say.
but i tried that in gamemaker and its not the same
Reason:
choose(); chooses a random input from one those keys and they can not be checked individualy. The method shown above does that, however it's quite a lot of copy and paste work.
randomize(); this will randomize the selection of the 'choose' function.
and for your secondary problem, use
Since randomize() is used in the step event, every frame the letter will be different, if don't want that, put randomize in an alarm loop