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 freefunction quackers()
if game.CurrentCharacter.CharacterState == 3 and Characters["duck"].CharacterFollowCharacter ~= game.CurrentCharacter then
Characters["duck"].CharacterFollowCharacter = game.CurrentCharacter
elseif game.CurrentCharacter.CharacterState ~= 3 and not Characters["duck"].CharacterFollowCharacter:isEmpty() then
Characters["duck"].CharacterFollowCharacter = emptyObject
end
end
registerEventHandler("mainLoop", "quackers")
Yeah, it works in terms of getting the random animations to run, but it causes the chasing character stops when the main character stops... Because my chasing character is a lot slower i need him to keep walking, while the main character is stopped, until he catches up...
local distance = 250 -- radius from current character in pixels @ 100%
local chaser = Characters["duck"]
local temp_distance -- empty (will be used to calculate new distance based on current characters scale value)
function quackers()
if game.CurrentCharacter.CharacterState == 3 and chaser.CharacterFollowCharacter ~= game.CurrentCharacter then
if ActiveActions["end_chase"] ~= nil then stopAction(ActiveActions["end_chase"]) end
chaser.CharacterFollowCharacter = game.CurrentCharacter; chaser.CharacterFollowReachDistance = 0
elseif game.CurrentCharacter.CharacterState ~= 3 and not chaser.CharacterFollowCharacter:isEmpty() then
temp_distance = math.floor( (chaser.CharacterSize / 100) * distance)
chaser.CharacterFollowReachDistance = temp_distance; startAction("Actions[end_chase]")
end
end
registerEventHandler("mainLoop", "quackers")
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.