Hi
Is it possible to make letter recognition?
For example, if typed "H" in text box then showing picture with "H"
if typed "O" in text box then showing picture with "O" and so on.
https://www.dropbox.com/s/qxpuqnams7lu9 ... .capx?dl=0
use frames..not sprite objects...
or..you can always build a custom spritefont...
RegexFrames+SpriteFont.capx
korbaach
Thank you, great example!
I added respective sounds
But i don't know how to make letters with sound.
I want to do this:
After write some text in textbox and click button
letters appears and sound with respective sound
Can you help with this?
https://www.dropbox.com/s/ap60sq6zrkb14 ... .capx?dl=0
I want to do this: After write some text in textbox and click button letters appears and sound with respective sound..
letters appears and sound with respective sound..
I guess... you need some delay ("typing effect") when you create letter sprites..
so..you can't use loop(actually...never mind)...
try this one:
LetterSpriteSound.capx
Awesome!!
Thank you very much!
Just interesting what is "g" in string RegexSearch(SpriteCharacters, Letter, "g")?
Why not "b" or other letter?
korbaach Awesome!! Thank you very much! Just interesting what is "g" in string RegexSearch(SpriteCharacters, Letter, "g")? Why not "b" or other letter?
http://www.w3schools.com/jsref/jsref_obj_regexp.asp
Just interesting what is "g" in string RegexSearch(SpriteCharacters, Letter, "g")? Why not "b" or other letter?
in this particular case..i think ..you can replace "g" with "i" or "m"..and it would not affect the code
like zenox98 reference "g" is Modifier in Regular expression...
Just search net and forum for Regular expression
Develop games in your browser. Powerful, performant & highly capable.
Thank for explanation.
It's something new to me.
Last question,
I added sounds named with russian letters "а" "б" "в" "г" "д"
In construct works everything ok,
but when i compiling apk in Intel XDK it's not compiling
some error occured
I now problem in russian letters "а" "б" "в" "г" "д"
How to solve this problem? I tried to make russian letters "а" "б" "в" "г" "д"
global, but no luck.
https://www.dropbox.com/s/pood51pt0zar2 ... .capx?dl=0
ok..try diffrent way..rename sounds..
а->frame with picture of "a" .(ogg&m4a)
б->frame with picture of "б"
.
..so if "д" is on frame 20..rename sound д to 20(ogg&m4a)
then you can use Audio play str(SpriteText.AnimationFrame)
Thanks again!!!