I want to grab a sprite with mousex(). When I use this command -
sprite 1, mousex(), 100, 1
it moves the whole sprite x(1) to the mousex() coordinates.
what I want to do is grab any part of the sprite with my mouse and not have the sprite automatically align with mousex().
this is what I have so far.
sprite 1,0,0,1
while mouseclick() = 1
diffX = mousex() - sprite x(1)
offset sprite 1, diffX ,0
while mouseclick() = 1
sprite 1, mousex() ,400,1
sync
endwhile
sync
endwhile
offset sprite 1, -diffX ,0
it grabs the sprite the first mouseclick() like it is suppose to. but as soon as I let off evrything goes weird. If anyone has a way to do this, I would be in your debt. Thanx