This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
cursorPos = getCursorPos()
xMin = 755
xMax = 1326
hThumb = getObject("Objects[H-Thumb]"):getPoint(VObjectPosition)
function onMouseEvent(eventType, mousePosition)
if eventType == eEvtMouseLeftButtonHolding then
-- Dragging function
if cursorPos.x < xMin then
hThumb:setValue(x, xMin)
elseif cursorPos.x > xMax
hThumb:setValue(x, xMax)
else
hThumb:setValue(x, cursorPos.x)
end
getObject("Objects[H-Thumb]"):setPoint(hThumb)
print("Cursor Position is" .. cursorPos.x)
print("H-Thumb Position is" .. hThumb.x)
end
end
registerEventHandler("mouseEvent", "onMouseEvent", {eEvtMouseLeftButtonHolding})
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 freeHi Charlie,yes the documentation in the wiki and lua docs are a bit confusing because the syntax changed a bit and for backwards compatibility there are more ways to specify objects or getting/setting the values.AFRLme's pasted script works great, especially when you want more than one slider or need to add one later to a menu. In the VS editor you mainly need to position an object polygon+animation and the rest is handled by the script.It depends a bit on how deep you want to/can dive into the Lua world with VS to accomplish such things.A more simpler slider solution was made by Einzekkaempfer long time ago. A bit outdated, but should still work. I cant find the original post, but i found a dropbox link by AFRLme in the forum which had an example project in it:
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.