Setvirtualresolution(640,480)
ResetTimer()
CreateText(1,"Click Me")
SetTextSize(1,30)
SetTextPosition(1,50,50)
//When left mouse is clicked or screen touched, check to see if this is over the text
Repeat
if ( GetPointerPressed ( ) = 1 )
hit = GetTextHitTest (1, GetPointerX ( ), GetPointerY ( ) )
endif
Print(hit)
Sync()
Until Timer()>15
End
Help make AGK better by submitting an example for this command! (All examples are subject to approval)
Setvirtualresolution(640,480) ResetTimer() CreateText(1,"Click Me") SetTextSize(1,30) SetTextPosition(1,50,50) //When left mouse is clicked or screen touched, check to see if this is over the text Repeat if ( GetPointerPressed ( ) = 1 ) hit = GetTextHitTest (1, GetPointerX ( ), GetPointerY ( ) ) endif Print(hit) Sync() Until Timer()>15 End