' 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
'______________________________________________________'