Uf!! Its LUA right? Been working with visionaire about 4 years ago and never tried LUA, is there any tutorial for starting with LUA, how to do it and how to start, im really Zero in LUA, never tried.Thank you
local offset = 34 -- 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 which updates the text position of displayed texts (character & narration) * --
function txtPos(text)
text:setValue(VTextPosition, {x = game.ScrollPosition.x + x, y = game.ScrollPosition.y + y}) -- define the new text position
return true
end
registerHookFunction("setTextPosition", "txtPos") -- define the hook function for handling text position
Ill be honest, i even dont know where is the code placed, but i will check right now the tutorial thanks.The script section of Visionaire Studio?
I have one more question, i already tested a little with scripts, looks really awesome =) but the script affects all the display text, is there anyway to only affect the character i want? how do i set that in a script? and also is there any way in script to change text alignment?This is why I asked question of what you wanted to affect with it. It's possible to only affect text for characters, narration text, background text, object text or specific characters.Thanks