Licence od 75 € Přihlásit se
DE EN FR ES IT CZ

Need help with background for text

  1. · 2 years ago
    Who can tell me how to add any dialogue text to the background in an already created game, I'll tell you right away it's not mine. I need it for translation and character definition because I read the text through pytesseract library python and pass the value of the found string to excel file. I don't know if it's possible to implement it by a button on and off in the interface or by a script, I found a script on the forum that just bring the character dialogue to the bottom of the screen, but I need a background for a more correct reading of the text.
    Script, if anything below, perhaps in it can be inserted immediately background.
    local offset = 100 -- offset from bottom (in pixels)
    local x = (game.WindowResolution.x / 2) -- calculate center value of resolution width
    local y = (game.WindowResolution.y - offset) -- calculate offset of text from bottom
    function txtPos(text)
     text:setValue(VTextPosition, {x = game.ScrollPosition.x + x, y = game.ScrollPosition.y + y})
     return true
    end
    registerHookFunction("setTextPosition", "txtPos")

    Thanks if anyone can help!
  2. Pracujete na hře?

    Bezplatná verze umožňuje až 25 scén na projekt. Pro více scén a pro prodej hry potřebujete licenci.

    Zobrazit licence Vyzkoušet zdarma

Toto téma je uzavřené, protože tu přes rok nikdo neodpověděl. Svůj dotaz můžete položit v novém tématu.

Nové téma

Opravdu smazat tento příspěvek?