After some more research I found out how to do it:
while (LoopGDK ( ) )
{
int current_mouse_x ;
int current_mouse_y ;
int current_mouse_click = dbMouseClick() ;
//If Left Mouse Click
if ( current_mouse_click == 1 )
{
current_mouse_x = dbMouseX() ;
current_mouse_y = dbMouseY() ;
dbSprite ( 2, current_mouse_x, current_mouse_y, 2 ) ;
//dbOffsetSprite ( 2, current_mouse_x, Current_mouse_y );
}
dbSync ( );
}
return;
But now I need to figure out how to do it so it only moves when you click on the sprite not anywhere on screen.
The help doc is a bit pants to be honest. I am disappointed looking through it seeing alot of commands titled as untitled.