Skip to first unread message

Barry Evans

unread,
Feb 15, 2016, 7:09:03 AM2/15/16
to MIT App Inventor Forum
Hi all,

I have built an app that runs quite well but for a few small glitches. i suspect the reason for the issues is redundant code. I have sections where there are around 200 blocks combined which can't be the most productive way of doing things. One of the features of my game is multiple levels. When a level is completed, sprites which were previously hidden come to light, the costumes change for the background, the canvass, the controllable sprite, enemies and the sprites that control the level. At the moment, I have about 20 different sprites changing costume as a new level begins, all programmed individually (but within the same block). Is there a simple way to say 'change picture for 'sprites 1-20'' or something like that?

Thanks for any advice.

Barry

Barry Evans

unread,
Feb 15, 2016, 7:36:52 AM2/15/16
to MIT App Inventor Forum
Ah, use the 'for each item in list' block. Got it. 

Scott Ferguson

unread,
Feb 15, 2016, 2:47:03 PM2/15/16
to mitappinv...@googlegroups.com
Thanks for letting us know how you solved it.
Also...
I would love to play the game when it is finished ;-)
---
Happy Inventing!
Reply all
Reply to author
Forward
0 new messages