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 freeLooks great! But character's turning movement is huge huge distraction, it's like punch in the face. I mean straight-walking movement is smooth and then - BANG - from one frame to another, character turns. I think this could work in some hand drawn-cartoonish adventure game like Broken Sword - there you don't really need that smoothed transitions, you actually don't really need so much frames for your animations in general. But if it is 2.5D with realistic look like yours is, it just don't work...
where and how I can use/import the tranlation animation which is the frames 20-40?
smt_turnactive = false
smt_direction = game.CurrentCharacter.Direction
smt_dest = game.CurrentCharacter.Position
smt_destobj = game.CurrentCharacter.DestinationObject
function angleDist(a,b)
return math.min(math.min( math.abs(a + 360 - b), math.abs(a - 360 - b)), math.abs(a - b))
end
function smoothTurningMainLoop()
local newstate = game.CurrentCharacter.AnimState
local newdir = game.CurrentCharacter.Direction
local c = game.CurrentCharacter
if smt_turnactive and newdir == smt_direction then
c.DestinationObject = smt_destobj
c.Destination = smt_dest
smt_turnactive = false
end
if not smt_turnactive and smt_direction~=newdir then
local turn = false
if newstate == eWalkAnim and smt_state ~= eWalkAnim then
smt_dest = c.Destination
c.Destination = c.Position
smt_destobj = c.DestinationObject
turn = true
end
if newstate ~= eWalkAnim and smt_state == eWalkAnim then
turn = true
end
if turn then
smt_turnactive = true
local start = smt_direction
if math.abs(newdir - smt_direction - 360) < math.abs(newdir - smt_direction) and math.abs(newdir - smt_direction - 360) < math.abs(newdir - smt_direction +360) then
start = smt_direction + 360
elseif math.abs(newdir - smt_direction + 360) < math.abs(newdir - smt_direction) then
start = smt_direction - 360
end
game.CurrentCharacter.Direction = start
game.CurrentCharacter:to(angleDist(smt_direction, newdir) * 5, {Direction = newdir})
end
end
smt_direction = newdir
smt_state = newstarte
end
registerEventHandler("mainLoop", "smoothTurningMainLoop")
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.