image sprite out of canvas edge

267 views
Skip to first unread message

Muzaffer Kadir Yılmaz

unread,
Jan 29, 2017, 4:06:50 PM1/29/17
to MIT App Inventor Forum
hello everyone I want the image sprite out of the canvas but in the edge it stops in my app how can i solve this problem?

Italo

unread,
Jan 29, 2017, 6:38:05 PM1/29/17
to MIT App Inventor Forum
Set the screen to center, place a canvas and set it to a size bigger than the screen.

Muzaffer Kadir Yılmaz

unread,
Jan 30, 2017, 1:12:15 PM1/30/17
to MIT App Inventor Forum
i placed a canvas and filled the screen weight because the user Chooses canvas background from android gallery so i cant place canvas bigger than screen

Italo

unread,
Jan 30, 2017, 3:01:15 PM1/30/17
to MIT App Inventor Forum
Don't set a background for your canvas, instead put that image in a sprite and make it the size of the screen (not the canvas) and center it on the canvas. Also move that sprite with the background image to the back with the Z setting.
Now you have a canvas where you can move sprites outside the screen, with a fake background that fills the screen.

Muzaffer Kadir Yılmaz

unread,
Jan 31, 2017, 8:59:37 AM1/31/17
to MIT App Inventor Forum
Yeah it is so smartly thank you !
But it cant move to image sprite of top of the canvas (upside)?

Italo

unread,
Jan 31, 2017, 9:49:34 AM1/31/17
to MIT App Inventor Forum
I didn't understand what you asked. But I guess you are talking about the sprites that you need to move being behind the background sprite. If that's what you mean, just change the Z value of the moving sprites, to a higher one than the Z value of the background sprite.

Muzaffer Kadir Yılmaz

unread,
Jan 31, 2017, 11:32:18 AM1/31/17
to MIT App Inventor Forum
no i am saying i cant set the canvas on center like this:


Italo

unread,
Jan 31, 2017, 11:40:18 AM1/31/17
to MIT App Inventor Forum
How about you make the canvas higher than the screen height and also center it vertically?

Muzaffer Kadir Yılmaz

unread,
Jan 31, 2017, 5:28:30 PM1/31/17
to MIT App Inventor Forum
i dont understand , i couldn't ??
Reply all
Reply to author
Forward
0 new messages