thank you for your reply but my problem is the position of the sprite or the entity. how can I equal the position of the sprite to mouse_pos.x and mouse_pos.y?