Hi all, the problem in a nutshell is that sometimes the following function returns 0 (according to the debugger, either it's returning 0 or something that's not a valid key code)
Essentially what I want to happen is:
> call the function "SpawnLetter"
set tmp = 65
tmp = random(65, 91) // 65-90 is the range of letter keycodes
if tmp not in use, return tmp
if tmp in use, recursively call
Here is a picture of the Function in the event sheet
The game (One Thousand Hands) is attached as a single capx file (I apologize in advance when you see my terrible structure!)
If there are any parts that aren't clear (due to my naming and such) let me know!
Also if you want PM me what you think of the game, it's not really self explanatory atm but if you're willing to work it out it's definitely playable!