u need
GetSpriteXByOffset ( iSpriteIndex )
GetSpriteYByOffset ( iSpriteIndex )
GetSpriteHit ( x, y )
GetSpriteHitCategory ( categories, x, y )
GetSpriteHitGroup ( group, x, y )
GetSpriteHitTest ( iSpriteIndex, x, y )
GetPointerPressed () or GetPointerReleased ()
GetPointerX ()
GetPointerY ()
u can make a function with parameter spriteindex and it returns 1-4 for the edges.
just call hit test 4 times and add/sub a value at the pointer
example.
d#=1.0
GetSpriteHitTest ( iSpriteIndex, x-d#, y-d# )
GetSpriteHitTest ( iSpriteIndex, x+d#, y-d# )
GetSpriteHitTest ( iSpriteIndex, x+d#, y+d# )
GetSpriteHitTest ( iSpriteIndex, x-d#, y+d# )
AGK (Steam) V2.0.18 : Windows 10 Pro 64 Bit : AMD (15.30.1025) Radeon R7 265 : Mac mini OS X 10.10 (Yosemite)