Canvas enlargement and sprites

125 views
Skip to first unread message

AiNick Coss

unread,
Aug 9, 2015, 9:44:15 AM8/9/15
to App Inventor Developers Library
I would like to know if there be a way to enlarge the canvas,? I already know I can.
if a ball heading of 80 is about to go off the canvas,
instead of the ball rolling across or bouncing off the edge,
How do i simulate the ball acting as though it left the canvas then reentered from the continued path, given that the heading in changing, like - 10 or something in order to have the ball reenter the canvas within the width of the canvas.
I'm thinking that maybe I need to animate the canvas and leave the ball at a stand still.
any ideas?

Scott Ferguson

unread,
Aug 9, 2015, 8:01:39 PM8/9/15
to App Inventor Developers Library
I'm not sure that I understand your question.
If you are talking about wrapping a ball as if it 'exits' one side of the canvas and 'enters' another side going at the same angle, then this AI Classic solution could be rewritten in AI2 blocks for that, I think.
I have 'exits' and 'enters' in quotes as a ball cannot go beyond the edge of the canvas.
---
sf

AiNick C

unread,
Aug 9, 2015, 9:46:27 PM8/9/15
to app-inventor-de...@googlegroups.com
I do believe you answered my question Scott in that a Ball cannot leave the canvas or that i cannot have the canvas follow a ball so that it doesn't leave the canvas.
Sometimes my thinking is still in the box and not Outside the box. 

It was a long shot and thought I'd get some confirmation on my "limits " of App inventor.

However, I must say, as a positive thought,  that I've gotten more satisfaction from developing Apps with app inventor than any other programming language iv'e used.
ooorrahhh! to app inventor!

--
(you have received this message from the App Inventor Developers Library)
---
You received this message because you are subscribed to the Google Groups "App Inventor Developers Library" group.
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-develope...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Scott Ferguson

unread,
Aug 10, 2015, 9:55:30 PM8/10/15
to App Inventor Developers Library
:-)
To unsubscribe from this group and stop receiving emails from it, send an email to app-inventor-developers-library+unsubscribe@googlegroups.com.

Scott Ferguson

unread,
Aug 27, 2015, 10:33:28 AM8/27/15
to App Inventor Developers Library
Along the same lines, I have worked out a method to move the canvas left and right inside a horizontal arrangement which makes it look as though the canvas background is scrolling.
---
sf

On Sunday, August 9, 2015 at 8:44:15 AM UTC-5, AiNick Coss wrote:
Reply all
Reply to author
Forward
0 new messages