Jump to content

Dragged sprite does not keep up with cursor


Nick
 Share

Recommended Posts

When dragging a sprite, the further I drag the sprite, the further the cursor/pointer moves away from the center of the sprite. It's as though the sprite does not keep up with the cursor. This effect becomes more noticeable on smaller screens.

 

My draggable items are placed within a scaled group so I'm wondering if this is having an affect on how the items are tracked within the game world. 

 

Has anybody else come across this before?

 

#Update: I've noticed when the game is scaled up on large screens that the sprite move's ahead of the cursor rather than falls behind it.

Link to comment
Share on other sites

 This was caused by the draggable sprites belonging to a group that had been scaled. I moved the sprites out of the group and added them directly to the world and they now drag correctly. The only negative is that I had to scale and position the sprites individually. 

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...