This for funs. In CE Lua, you are able to make an object to follow your mouse movement.
Just like this:
Code:
function timer1_tick(sender)
img.Picture.loadFromStream(findTableFile('superhero1.png').Stream)
img.setSize(300,300)
x,y=getMousePos()
img.Left = x - img.Width
img.Top = y - img.Height
end
function timer1_tick(sender)
-- img.Picture.loadFromStream(findTableFile('superhero1.png').Stream)
local x,y=getMousePos()
img.Left = x -50-- img.Width
img.Top = y -50-- img.Height
e1.Text = x..','..y
end
function stop()
t.Enabled=false
-- img.Picture.loadFromStream(findTableFile('superhero1.png').Stream)
img.setPosition(e1.Text)
-- img.setSize(100,100)
end
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You cannot download files in this forum