Discuss Scratch
- Discussion Forums
- » Bugs and Glitches
- » blocks "go to fond" and "go back () layers"
- Gego51
-
49 posts
blocks "go to fond" and "go back () layers"
the blocks “go to fond” and “go back () layers” don't work great with clones
- drmcw
-
1000+ posts
blocks "go to fond" and "go back () layers"
No offence but I'd suspect your code first. Can you provide an example of the problem?
- retsamekop10
-
31 posts
blocks "go to fond" and "go back () layers"
I have the same problem, except it's with just normal sprites. I simply put in the code:
|When green flag clicked|
|forever]
|
[(end forever)|
If that was hard to read: When green flag clicked: forever()
I was trying to make a scrolling game but the background sprites always end up near the front.
|When green flag clicked|
|forever]
|
[(end forever)|
If that was hard to read: When green flag clicked: forever()
I was trying to make a scrolling game but the background sprites always end up near the front.
- DadOfMrLog
-
1000+ posts
blocks "go to fond" and "go back () layers"
Are you, by any chance, doing that in more than one, or even several, sprites? If so, that's the problem - each sprite is just going back behind one that's just moved back a layer itself.
As an example, consider two sprites, sprite1 on top, and sprite2 just behind…
Each sprite is running its forever loop, so sprite1 goes through the script within its loop first (only once), and so moves back 1 layer - that means sprite2 is now on top and sprite1 is just behind.
But now sprite2 goes through its loop script (once) - and so it ends up moving back 1 layer, just behind sprite2.
Everything is now back right where it started, ready for them to do exactly the same thing next time through their loops!
Does this make sense?
@Gego51: it may be helpful if you provide some example scripts to show what you're doing, and to explain the problem more specifically - sharing the project would be the ideal way, but if you can create a simple example to demonstrate it, that would be fine.
Last edited by DadOfMrLog (Jan. 13, 2014 13:16:32)
- Discussion Forums
- » Bugs and Glitches
-
» blocks "go to fond" and "go back () layers"