This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
function ClickAction(S)
while SomeCondition do
.. do some calculations to determine mySceneAction
startAction(mySceneAction)
.. do some other calculations
end
end
The free version covers up to 25 scenes per project. For more scenes and to sell your game, you need a license. Forum readers get the Indie Bundle 15 % off with the code FORUM15: €84.15 instead of €99, valid until 31 Dec 2026.Black Friday: the Indie Bundle is 30 % off until 1 Dec 2026, €69.30 instead of €99. The code BLACKFRIDAY is already applied.
Get 15 % off Try it for freeTo make clear what happens I wrote the pile of actions next to the call:
1. Execute script -> Current action, MoveToB
2. Call action MoveToC -> Current action, MoveToB, MoveToC
Now the action is finished and the rest gets worked on, first MoveToB, character destination will be set, then MoveToC, character destination gets overwritten with C.
if bsizec == 1 and bsizer == 1 then
ready = board[row(curpos)][col(curpos)+1] == 0
elseif bsizec == 2 and bsizer == 1 then
ready = board[row(curpos)][col(curpos)+2] == 0
elseif bsizec == 1 and bsizer == 2 then
ready = board[row(curpos)][col(curpos)+1] == 0 and
board[row(curpos)+1][col(curpos)+1] == 0
elseif bsizec == 2 and bsizer == 2 then
ready = board[row(curpos)][col(curpos)+2] == 0 and
board[row(curpos)+1][col(curpos)+2] == 0
end
if bsizec == 1 and bsizer == 1 then ready = board[row(curpos)][col(curpos)+1] == 0
elseif bsizec == 2 and bsizer == 1 then ready = board[row(curpos)][col(curpos)+2] == 0
elseif bsizec == 1 and bsizer == 2 then ready = board[row(curpos)][col(curpos)+1] == 0 and board[row(curpos)+1][col(curpos)+1] == 0
elseif bsizec == 2 and bsizer == 2 then ready = board[row(curpos)][col(curpos)+2] == 0 and board[row(curpos)+1][col(curpos)+2] == 0 end
if something then do something; print("something"); return something
elseif other then....
etc...
t,= {}
t[1] = ...
t[2] = ...
etc...
-- to
t = {something, "something_else"}
-- or
t = {"name" = "bob", "profession" = "builder"}
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.
Until December 1: the Indie Bundle is 30% off with the code BLACKFRIDAY, €69.30 instead of €99.