Didjynn
Member
Hello everyone,
I had today a big problem and I don't know how to get rid of it.
I wanted to create a "simple" translation system in my game. You can find books that use a font with symbols so it's unreadable. We can discover the meaning of some letters and so some letters in the sentence would be translated and not the others. In Final Fantasy, a Z could become a B after translation. Yup easy encoding
this code can tell me for each letter if I already know it but the problem is when I want to draw the sentence...
Because you can only change the font before and after your sentence, not inside of it so in the end the full sentence will be translated or totally not translated, you can't just translate one letter after another.
If anyone have a better idea than mine, would be nice if it could be done in few lines I'm trying to make a clean work.
Thank you for your time and help
I had today a big problem and I don't know how to get rid of it.
I wanted to create a "simple" translation system in my game. You can find books that use a font with symbols so it's unreadable. We can discover the meaning of some letters and so some letters in the sentence would be translated and not the others. In Final Fantasy, a Z could become a B after translation. Yup easy encoding
Code:
var str = string_ord_at(txt, typespeed)
//show_debug_message("str = " + string(str))
if tbltranslate[str] = 1 {
lettreconnue = 1
}else{
lettreconnue = 0
}
Because you can only change the font before and after your sentence, not inside of it so in the end the full sentence will be translated or totally not translated, you can't just translate one letter after another.
If anyone have a better idea than mine, would be nice if it could be done in few lines I'm trying to make a clean work.
Thank you for your time and help