The code I used is nearly the same as the the one used in the game "Chaos in the Cannibal Village" to move the sound sliders in Options Menu.
The main script is looking like this :
AnimWidth = 148
AnimHeight = 108
function dropObj(typ, xpos,ypos)
local VolAnim = getObject("ActiveAnimations[AnimPz" .. typ .. "]")
local CursorPos = getCursorPos()
local xPos = math.floor(CursorPos.x - AnimWidth / 2 + 0.5)
local yPos = math.floor(CursorPos.y - AnimHeight / 2 + 0.5)
if standard == false then
The main difference is that my object area is exaltly the same size as the object I want to move and I keep the procedure running until I click again to the final destination. That way I can move th object anywhere on the screen (not limited to the size of the object area)
Of course after that I cannot pick up the object anymore.
What would be the code to refer to the object area with Lua?
I could send my .ved file. What would be the procedure?