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 freeIf you are dragging an item it is in game.UsedItem.
So you can test game.UsedItem:getId().id ~= -1
if not game.UsedItem:isEmpty() then
-- do something
end
if not game.UsedItem:isEmpty() then
setCommand("the_interface_name") <-- this part is only for what i mean..
end
game.ActiveCommand = Buttons["button_name"]
game.ActiveCommand = Interfaces["interface_name"].InterfaceButtons["button_name"]
game.ActiveCommand = Interfaces["interface_name"].InterfaceStandardCommand
function onMouseEvent(eventType, mousePosition)
if eventType == eEvtMouseLeftButtonDown and game.UsedItem:getId().id ~= -1 then
-- mouse left was activated, do something
Conditions["Dropped_si"].ConditionValue = true
end
if eventType == eEvtMouseRightButtonDown and Conditions["Dropped_si"].ConditionValue == true then
-- mouse right was activated, do something
game.ActiveCommand = Interfaces["base_cursore"].InterfaceStandardCommand
Conditions["Dropped_si"].ConditionValue = false
end
end
registerEventHandler("mouseEvent", "onMouseEvent", {eEvtMouseMove, eEvtMouseLeftButtonDoubleClick, eEvtMouseLeftButtonDown, eEvtMouseLeftButtonUp, eEvtMouseLeftButtonHold, eEvtMouseLeftButtonHolding, eEvtMouseRightButtonDoubleClick, eEvtMouseRightButtonDown, eEvtMouseRightButtonUp, eEvtMouseMiddleButtonDown, eEvtMouseMiddleButtonUp, eEvtMouseWheelUp, eEvtMouseWheelDown})
if Conditions["test"].ConditionValue then -- if condition test is true
if not Conditions["test"].ConditionValue then -- if condition test is false
registerEventHandler("mouseEvent", "onMouseEvent")
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.