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 freeregisterEventHandler("mouseEvent", "onMouseEvent", {eEvtMouseLeftButtonDown})
function onMouseEvent(eventType, mousePosition)
<b> </b>-- action on left click to not tease the drag item action
if eventType == eEvtMouseLeftButtonDown
then
local v_item = nil
if not game.UsedItem:isEmpty()
then
if game.UsedItem:getName() ~= v_item
then
v_item = game.UsedItem:getName();
Values.current_item_string.String = v_item
end
if Values.current_item_string.String == "Key"
then Values.current_item_num.Int = 1
end
--assign a numeric value, comparing strings does not work to me :S
if Values.current_item_string.String == "Bottle"
then Values.current_item_num.Int = 2
end
if Values.current_item_string.String == "Glass"
then Values.current_item_num.Int = 3
end
else
if game.UsedItem:isEmpty() and v_item ~= nil
then v_item = nil;
end
end
end
end
elseif not game.UsedItem:isEmpty() --if have an item dragged
then
startAction(description_item)
endif not game.UsedItem:isEmpty() then
startAction(Actions["desc_".. game.UsedItem:getName()] )
endGreat! I'll try .
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.