ImageSprite, Canvas: Panning or scrolling background images

1,653 views
Skip to first unread message

Scott Ferguson

unread,
Sep 29, 2012, 11:01:08 PM9/29/12
to app-inventor-de...@googlegroups.com
Here is a way to have your app scroll a background. It simply involves changing the width of the image.

 

Screen Designer uses a canvas set to width: fill parent, and image sprite containing a wide image.

Have your program change the sprite width in increments that suits you. I used, 10 pixels per step. I could not get dragging the background to work, though.


Pan.zip

Greg Jensen

unread,
Mar 27, 2014, 12:12:52 AM3/27/14
to app-inventor-de...@googlegroups.com
Nice trick but doesn't seem to work in AI2

Scott Ferguson

unread,
Mar 27, 2014, 11:34:30 PM3/27/14
to app-inventor-de...@googlegroups.com
Reply all
Reply to author
Forward
0 new messages