I just finished a moving background script with a variable for speed control (http://scratch.mit.edu/projects/DrJim/10069 ). For some reason, however, the slider for the speed control doesn't appear until the script is about half way through. When it appears, it seems to work fine.
Can someone please tell me what I'm doing wrong - thanks.
Offline
You probably forgot to send your moving background to the back. Use "move back 99 layers" on it.
Offline
Thanks - the great thing about this forum is you can post a question before you go to bed and get the answer the next morning. :-)
Due to the basic structure of my moving background approach - namely that it requires multiple "background" sprites to really be in the background in order to avoid/minimize flicker - I can't just use a simple "go back 99 layers" command. However, the actual solution shouldn't be much harder.
Two more questions:
Am I correct that every sprite and/or variable box is counted as a separate "level"?
Is there a way to move a slider/variable box to the front with a command? The only way I've found is to move it with the mouse, which appears to always move anything to the front.
Offline
Good question...
For now, I think the only way to automatically move a variable box to the top would be to move the sprites back (using the "go back _ layers" block in the Looks category).
This is something we should consider for future versions...I wonder what do you think would work best, (e.g., should a variable box always be on top?).
Offline
Perhaps variable blocks should be sprites in their own right?
That is, a sprite may have as a costume "variable display" and display any variable from any sprite.
Offline
That's a good idea - then we could treat them exactly like sprites, showing them only on command, moving them around, etc.
Offline
Eg, all the games that gome with sliders - you could have a key-press hide/show them so they don't clutter up the screen when you don't need them.
Offline