The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license.Until 1 Dec 2026 all licenses are 30 % off, for example the Indie Bundle for €69.30 instead of €99. The code BLACKFRIDAY is applied automatically at checkout.
See licenses Try it for free--** function to position the action text **--
local txt = ""
local pos = {x=0, y=0}
local new_pos
local buffer = 10
function actiontext(mousePos,text)
if text ~= "" then -- if there is action text
txt = text
-- adjust text position
pos.y = mousePos.y + 50
pos.x = mousePos.x + 25
graphics.addDrawFunc("draw()", 1)
return ""
else
txt = ""
end
return text
end
registerHookFunction("getActionText", "actiontext")
function draw()
if game.Dialog.empty then
if Conditions.Char_is_speaking.Value == false then -- to hide the text while speaking // is changed in the text started event
if game.HideCursor == false then
local dim = graphics.fontDimension(txt)
local halfdim = math.floor(dim.x/2) -- used to center text
new_pos = {x = 0, y = 0}
-- adjust position for text when near the edge
if pos.x + halfdim + buffer > game.WindowResolution.x then
new_pos.x = game.WindowResolution.x - dim.x - buffer
elseif pos.x - halfdim <= buffer then
new_pos.x = buffer
else
new_pos.x = pos.x - halfdim -- center text on x axis
end
-- position on y axis
new_pos.y = pos.y
else
txt = ""
end
-- draw the text --
if txt ~= "" then graphics.drawFont(txt, new_pos.x , new_pos.y, 1) end
end
end
end
-- functions to change the Condition "Char_is_speaking" on text start and text stop
function onTextstart(text)
if text.Owner.tableId == eCharacters and not text.Background then
Conditions.Char_is_speaking.Value = true
end
end
function onTextstop()
Conditions.Char_is_speaking.Value = false
end
registerEventHandler("textStarted","onTextstart")
registerEventHandler("textStopped","onTextstop") This thread is closed because nobody has replied for more than a year. Feel free to ask your question in a new thread.
New threadDeponia, The Whispered World and more than 160 other games were made with Visionaire Studio. The free version covers up to 25 scenes. For more scenes there is Visionaire Studio PRO from €75, and to sell your game the Indie Bundle for €99.
Through December 1: all licenses 30% off, for example the Indie Bundle for €69.30 instead of €99. Applied automatically at checkout.