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. 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 free-- note: reverse only works if loop is enabled. (reverse means play forward then backwards)
-- note: loop amount can be increased by adding higher rotation value. i.e: 720 will rotate 2x
-- note: rotation can also be done in the opposite direction by using a negative value. i.e: -180
-- example: rotateObject("granny", 100, 170, 3000, easeQuintOut, false, false)
function rotateObject(obj, scale, degree, delay, easing, reverse, loop)
obj = Objects[obj]
obj.RotationCenter = {x = -1, y = obj.ObjectSprite.SpriteSprite:getPosition().y}
obj.Rotation = obj.Rotation; obj.Scale = obj.Scale
scale = (scale / 100) -- convert scale percent to decimal
degree = (degree * math.pi) / 180 -- convert degree to radian
obj:to(delay, {Rotation = degree, Scale = scale}, easing, loop, reverse)
end
local deg = 43
local a = (deg / 360) * (2 * math.pi)
local b = (deg * math.pi) / 180
print(a, b)
function onMouseEvent(eventType, mousePosition)
if eventType == eEvtMouseMove then
if getCursorPos().x < game.CurrentCharacter.CharacterPosition.x - 25 then
ActiveAnimations["char_head"].AnimationFirstFrame = 1; ActiveAnimations["char_head"].AnimationLastFrame = 1
elseif getCursorPos().x > game.CurrentCharacter.CharacterPosition.x + 25 then
ActiveAnimations["char_head"].AnimationFirstFrame = 3; ActiveAnimations["char_head"].AnimationLastFrame = 3
else
ActiveAnimations["char_head"].AnimationFirstFrame = 1; ActiveAnimations["char_head"].AnimationLastFrame = 1
end
end
end
registerEventHandler("mouseEvent", "onMouseEvent", {eEvtMouseMove, eEvtMouseLeftButtonDoubleClick, eEvtMouseLeftButtonDown, eEvtMouseLeftButtonUp, eEvtMouseLeftButtonHold, eEvtMouseLeftButtonHolding, eEvtMouseRightButtonDoubleClick, eEvtMouseRightButtonDown, eEvtMouseRightButtonUp, eEvtMouseMiddleButtonDown, eEvtMouseMiddleButtonUp, eEvtMouseWheelUp, eEvtMouseWheelDown})
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.