guys i'm trying to make a typing game based on the typinggame.capx provided here by korbaach. but 2 problems for me there:
- first, i would like to have every sprite letters disappear one bye one (in the correct order!) if i press the exact key.
because i'm a noob with construct the only expression or formula i managed to find here is to compare the key pressed with "Keyboard.StringFromKeyCode(Keyboard.LastKeyCode)"
and "uppercase(left(txtWord.Text,1))" with the action: destroy sprite.
so with A pressed (conditions: animation frame = 0, and sprite visible on screen) the word "arachnids" will become "rchnids"
so it does take off the first letter but also all A from word <img src="{SMILIES_PATH}/icon_e_sad.gif" alt=":(" title="Sad" /> plus if i continue and press R it will not disappear. i tried to add conditions
"uppercase(left(txtWord.Text,1))"=/= "uppercase(left(txtWord.Text,2))" ...text,3 text,4 etc with no succes. it becomes complicated for me...
- second, if i make a mistake and press b for example nothing happens and if it's a very long sentence i will see the error way too late.
i took the same formula above with action: sound+ right(SpriteFont.Text,len(SpriteFont.Text)-1) to erase the wrong key pressed
but again it works perfectly for first letters but i don't know how to do it for the rest of the word.
it would be nice of you all if you could give me some hints. thanks
hope i didn't choose the worst method possible :p
ps: i don't know if i can allready put links, it's my very first post so.
"https://imgur.com/a/8z0dA"
the modified capx: ufile.io/d0o5b "https://ufile.io/d0o5b"