ok so this fix isnt working right but i think the solution is there i just cant get it to work.. i tried all kind of stuff maybe someone can help
rem
rem AGK Application
rem
rem Landscape App
//SetDisplayAspect( 4.0/3.0 )
CreateSprite(1,0)
SetSpriteSize(1,5,5)
SetSpritePositionByOffset(1,50,50)
sX# = 50
sY# = 50
SetRawMousePosition(50,50)
rem A Wizard Did It!
do
SetRawMousePosition(50,50)
lx# = px#
ly# = py#
px# = GetPointerX()// can be changed to GetRawMouseX()
py# = GetPointerY()
moveX# = px# - lx#
moveY# = py# - ly#
sX# =sX# + moveX# * 0.1
sY# = sY# + moveY# * 0.1
SetSpritePositionByOffset(1,sX#,sY#)
MoveX# =0.0
MoveY# = 0.0
print(lx#)
print(ly#)
print(px#)
print(py#)
print (moveX#)
print (moveY#)
Sync()
loop
so in here you actually always placing the mouse at 50,50 center of the screen and you use mouseMoveX and mouseMoveY to move a sprite which will act as your cursor. this way you never get out of the screen with the mouse... but i cant put my finger on what im doing wrong when i was using DarkGDK this worked but i guess i messed up the vars or something... the solution is right there but i dont know... hope one of these solutions help.