This thread is a few years old. Some details may refer to an earlier version of Visionaire Studio. Current tutorials
Create point and click adventures without coding. The free version covers up to 25 scenes per project. For more scenes or to earn money with your game, you need a license.
See the Indie Bundle Try it for freelocal char_dest -- create a blank variable that we can use for both of the functions
-- let's create the function that stores the character destination
function saveDest()
char_dest = game:getLink(VGameCurrentCharacter):getPoint(VCharacterDestination)
end
-- let's create the function that resets character destination
function getDest()
game:getLink(VGameCurrentCharacter):setValue(VCharacterDestination, {x = char_dest.x, y = char_dest.y})
end
saveDest()
getDest()
CharacterDestination -- general x,y destination
CharacterDestinationObject -- if character destination is an object or character
GameDestinationCommand -- the command you used on the object, character
GameDestinationEvent -- a normal mouse event such as left/right click or hold etc
GameDestinationItem -- if you used an item on the object or character
GameDestinationItemPicked -- same as above but is for if you have used a dragged item