This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
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 freeif Values["value_name"].Int >= 1 and Values["value_name"].Int <= 10 then
-- add code or call an action with startAction() function here
elseif Values["value_name"].Int >= 11 and Values["value_name"].Int <= 20 then
-- more actions
-- etc...
end
1action
start_balance_miniGame
local RandomFrame = math.random(140,160)
Values["balance_pause"].int = 20
Values["balance_frame"].int = RandomFrame
local frame = getObject("Values[balance_frame]"):getInt(VValueInt)
startAnimation("Animations[anim_name]")
ActiveAnimations[anim_name].Position = {x = frame, y = frame};
startAction("Actions[Balance_loop]")
---------------------------------------------------------------------------------------------------
2action
Balance_loop
1. execute script
local frame = getObject("Values[balance_frame]"):getInt(VValueInt)
ActiveAnimations[anim_name].Position = {x = frame, y = frame};
2. call script "Balance_update"
3. Pause for balance_pause Value
4. Jump to action part #1
-----------------------------------------------------------------------------------------------------
3action ( I missed the ENDS )
Balance_update
local frame = getObject("Values[balance_frame]"):getInt(VValueInt)
if frame = 300 THEN
startAction("Actions[Game_over]")
else
if LEFT OR RIGHT THEN
if LEFT
Values["balance_frame"].int = Values["balance_frame"].int - 1
else
Values["balance_frame"].int = Values["balance_frame"].int + 1
else
if frame >= 150 THEN
Values["balance_frame"].int = Values["balance_frame"].int + 1
else
Values["balance_frame"].int = Values["balance_frame"].int - 1
Call script balance_update_pause
-----------------------------------------------------------------------------------------------------
4action
balance_update_pause
local frame = getObject("Values[balance_frame]"):getInt(VValueInt)
if frame >= 1 AND frame <= 10 THEN
--- value PAUSE set 10ms
elseif frame >= 11 AND frame <= 20 THEN
--- value PAUSE set 11ms
elseif frame >= 21 AND frame <= 30 THEN
--- value PAUSE set 12ms
elseif frame >= 31 AND frame <= 40 THEN
--- value PAUSE set 13ms
......
local RandomFrame = math.random(140,160)
Values["balance_frame"].int = RandomFrame
Values["balance_frame"].int = math.random(140, 160)
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.