Is there a way to pin these sprites to a screen or get notification that a screen is being dragged so I can make the toolbar(the sprites) move in sync with the screen? I'm coming up blank
Don't come up blank. Come up
vertical blank.
Here is how u do it:
1. Determine the entry in your struct screen (or whatever) that stores the current offset of your screen. By "offset" I do not mean memory location I mean how much Y the screen has been dragged. I am too lazy 2 look it up 4 u
2. Set up a Vertical Blank Interrupt.
3. Your vblank interrupt server will automagically run 50 times a second and check if your screen has been dragged. If so then it will call MoveSprite() appropriately.
4. Profit.
Later on u can use this same vblank routine to
animate your sprites if u wish.