How to make Sprite move by itself when screen Initialized

339 views
Skip to first unread message

Brandon Kidd

unread,
Apr 10, 2015, 11:37:21 AM4/10/15
to mitappinv...@googlegroups.com
Is there a way to make a sprite move on its own when the screen is initialized?

thanks for all the help.

Brandon

Enis

unread,
Apr 10, 2015, 11:55:37 AM4/10/15
to mitappinv...@googlegroups.com
Probably not.  The best way would be to have a timer, disabled with an interval of 100, and do your moving there.  At the end of the initialization, enable tht etimer.  AS the first block in the Timer, disable that timer so it doesn't fire again.

Taifun

unread,
Apr 10, 2015, 12:16:04 PM4/10/15
to mitappinv...@googlegroups.com
Is there a way to make a sprite move on its own when the screen is initialized?
sure, just set the speed and heading of that sprite


Heading

Returns the sprite's heading in degrees above the positive x-axis. Zero degrees is toward the right of the screen; 90 degrees is toward the top of the screen.

Speed

The speed at which the sprite moves. The sprite moves this many pixels every interval.

Taifun

Trying to push the limits of App Inventor! Snippets and Tutorials from Pura Vida Apps by Taifun.                

Brandon Kidd

unread,
Apr 10, 2015, 12:40:01 PM4/10/15
to mitappinv...@googlegroups.com
Thanks Taifun, That worked great!
Reply all
Reply to author
Forward
0 new messages