Hmmm.. okey .. so i did it like this;
local ui= require "ui"
local win= ui.Window("My Win",1200,800)
win:show()
local bottonLeft= ui.Button(win,"Left", 30, 60, 60, 25)
local bottonRight= ui.Button(win,"Right", 90, 60, 60, 25)
local bottonUp= ui.Button(win,"Up", 60, 35, 60, 25)
local bottonDown= ui.Button(win,"Down", 60, 85, 60, 25)
local shape= ui.Picture(win,"F_16_60x60.png",600,400)
-- local Top = Object {
-- shape= "O",
-- x = 600,
-- y= 400
-- }
function bottonLeft:onHover()
shape.x= shape.x-1
end
function bottonRight:onHover()
shape.x= shape.x+1
end
function bottonUp:onHover()
shape.y= shape.y-1
end
function bottonDown:onHover()
shape.y= shape.y+1
end
while (win.visible) do
ui.update()
end