This is a read-only archive of the old Scratch 1.x Forums.
Try searching the current Scratch discussion forums.

#1 2011-04-05 20:12:39

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Dos the go to front block work when the sprite is hidden?

Does the go to front block work when the sprite is hidden? So basically if that's true, then it stores the "layer" of the sprite, and it's applied when it's shown. I made a test here. The purple cat should show if my hypothesis was correct. This was the code for the purple cat:
http://i.imgur.com/fSuhw.png
This was the code for the regular cat:
http://i.imgur.com/LBmLI.png
So when I clicked the green flag, this happened:
http://i.imgur.com/aoEiU.png
When I clicked the green flag again, this happened:
http://i.imgur.com/NmNGJ.png
So the first time, my hypothesis didn't work. But in the second time, it did work. Does anyone have an explanation?

Also, I tried this on the Flash Viewer, the Experimental Viewer, Java Viewer, and the offline version (Scratch 1.4). So why is this different for both times? Please help.

Offline

 

#2 2011-04-06 08:56:12

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: Dos the go to front block work when the sprite is hidden?

Bump!!!

Offline

 

#3 2011-04-06 09:47:01

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: Dos the go to front block work when the sprite is hidden?

bump

Offline

 

#4 2011-04-06 18:17:18

scratch_yoshi
Scratcher
Registered: 2009-06-12
Posts: 1000+

Re: Dos the go to front block work when the sprite is hidden?

It's because two "go to front" scripts are being played together, so the first time the first one came first and the second time the second one came first.


Retired from Scratch, but just the language itself. Not the forums.

Offline

 

#5 2011-04-06 18:46:39

lemonpretzel
Scratcher
Registered: 2008-10-23
Posts: 100+

Re: Dos the go to front block work when the sprite is hidden?

Oh, you're right. I did it wrong. Sorry.

Offline

 

#6 2011-04-06 19:03:03

cheddargirl
Scratch Team
Registered: 2008-09-15
Posts: 1000+

Re: Dos the go to front block work when the sprite is hidden?

Closed by request of owner.


http://i.imgur.com/8QRYx.png
Everything is better when you add a little cheddar, because when you have cheese your life is at ease  smile

Offline

 

Board footer