integer GetSpriteHit(GetPointerX ( ), GetPointerY ( ) ) will return the id of the sprite you have clicked with mouse
SetSpriteSize ( iSpriteIndex, width, height ) will allow you to change the width and height if sprite
the below should give you a starter click the white square in top left corner and hold down mouse moving to right or downwards
Setvirtualresolution(640,480)
ResetTimer()
//Create test sprite shape
id=CreateSprite(0)
SetSpriteColor(id,255,255,0,255)
SetSpriteSize(id,Random(10,60),Random(10,60))
SetSpritePosition(id,200,200)
//When left mouse is clicked or screen touched, check to see if this is over the sprite
id=CreateSprite(0):dragging=0
SetSpriteSize(id,10,10)
SetSpritePosition(id,0,0)
Repeat
if ( GetPointerState() = 1 )
hit = GetSpriteHitTest (id, GetPointerX ( ), GetPointerY ( ) )
dragging=1
else
dragging=0
endif
print(dragging)
if dragging=1
SetSpriteSize(id,GetPointerX(),getPointerY())
SetSpritePosition(id,0,0)
endif
Sync()
Until GetRawKeyPressed(27)
You will need to do some math with the actual sprite x location and the position of the mouse to resize a sprite
not all the way to the left and ofcourse y needs the same math so the sprites can be positioned anywhere but
that should give you a starter