' Asynchronous Event Callbacks:
'__________________________________________________________'
Sub MouseClickedEvent
CheckPointerOverSpriteLocation()
isDown = "True"
EndSub
'__________________________________________________________'
Sub MouseReleasedEvent
isDown= "False"
EndSub
'__________________________________________________________'
' Sprite Subroutines:
'__________________________________________________________'
Sub CheckPointerOverSpriteLocation
If Math.Abs(mx - x) < RAD And Math.Abs(my - y) < RAD Then
isHovering = "True"
Else
isHovering = "False"
EndIf
EndSub
'__________________________________________________________'
Sub DragSpriteToPointerLocation
x = mx
y = my
Shapes.Move(sprite x, y)
EndSub
'__________________________________________________________'