Error Table Validation for apostrophe
Fed_05
Member, PRO Posts: 4
Hello guys, i've been working on a quiz game and have been encountering a problem in my table for validating answers.
I have a "TBAnswers" table that can store the texts that i input based from keyboard input variable. Then i have a "TBCorrectAnswers" that has the correct answers.
The problem is that whenever i have an answer that has an apostrophe such as "you'll" the TBCorrectAnswers doesn't seem to acknowledge it even if i edit the table for the correct answer to be just simply apostrophe and then type that as my answer it still doesn't acknowledge to be a correct answer.
Is this a bug or does GameSalad creator doesn't have this feature?
Comments
It works as expected. Remember things are case sensitive as well.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Yeah i see it, i do have that value in my app but this is what i've been encountering. Check this sample file that i made about that problem.
It has a text box that shows the value from the correct answer, while the KeyAnswer actor in the middle is where you can type with the Keyboard input attribute.
Then the Enter actor validates if the values of "tableCellValue( game.TBAnswers ,2,1)" is "tableCellValue( game.TBCorrectAnswers ,2,1)"
By the time you press that Enter, the green actor should spawn if its correct, while red actor if its wrong.
Notice how it acknowledge your while when its you're it doesnt....which is weird.
I made a separate rule for the validation of the word "your" to compare them.
In the first screen shot, if you look close the two apostrophes are different. The top one is straight, and the bottom one is 'curly'. These are two separate characters and will not match or be considered as equal.
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
I bet this has to do with the font.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
So here is the issue game salad fonts are Helvetica New while the keyboard input is Helvetica.
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS
Wow i didn't know that! Btw i just searched on the net about that curly apostrophe and added it to my "you're" value in the TBCorrectAnswers table and it worked! Thanks a lot sir jamie_c
Yeah come to think of it, whenever i type and even re-type the apostrophe in the Keyboard Input, it automatically corrects itself to that curly apostrophe....it may be related to the font in which i don't know how to change right now.
But thanks a lot for helping me in this problem sir Hopefully GameSalad can make alternatives about this issue that i just encountered.
Text is matched as text, it has nothing to do with the font being used.
try disabling curly quotes and see if it still persists:
http://www.iclarified.com/38772/how-to-disable-curly-quotes-in-mac-os-x-mavericks
@Fed_05, you're welcome!
http://jamie-cross.net/posts/ ✮ Udemy: Introduction to Mobile Games Development ✮ Learn Mobile Game Development in One Day Using Gamesalad ✮ My Patreon Page
Tested and turning off "Use smart quotes and dashes" works
Guru Video Channel | Lost Oasis Games | FRYING BACON STUDIOS