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. 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 free-- examples of getting a character with Lua...
game:getLink(VGameCurrentCharacter) -- get current character...
getObject("Characters[character name here]") -- get linked character
-- * local variables * --
local char, pos
-- * function for getting character position * --
function setCharPos()
char = game:getLink(VGameCurrentCharacter) -- get current character
pos = char:getPoint(VCharacterPosition) -- stores character position into an x,y table
-- * --
char:setValue(VCharacterPosition, {x = pos.x - 50, y = pos.y)
end
setCharPos()
Danke! Ich mach jetzt die ersten schritte mit lua.
char = "katze"
Characters[char]Characters.katze +1 seconded. Using square brackets is best because you can input either the actual name wrapped in "name" or 'name' like so or you can input a variable or even link to another VisOBJ (visionaire object) in some cases such as an integer or string value stored inside of a variable or value that you created somewhere in the editor.Danke! Ich mach jetzt die ersten schritte mit lua.
Ich persönlich finde die Schreibweise Characters["katze"] immer noch am besten, da du hier in den Eckigen klammern auch einen vorher dynamisch definierten Wert angeben kannst, welcher bei den anderen Methoden dann nicht möglich wäre:char = "katze" Characters[char]beiCharacters.katzegeht das angeben einer variable verloren.
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.