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

#1 2012-09-03 13:02:56

Firedrake969
Scratcher
Registered: 2011-11-24
Posts: 1000+

Go to back?

Is there a way for a sprite to go to the back of the screen?


Click the sign.
https://s3.amazonaws.com/eterna/eterna2/logo2.png

Offline

 

#2 2012-09-03 13:16:25

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Go to back?

go back (99999999999) layers


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#3 2012-09-03 13:33:20

TheMagician
Scratcher
Registered: 2011-09-25
Posts: 62

Re: Go to back?

^^^ That works, but it also works to have the number be the amount of sprites you have.

I strongly question the absence of the "Go to back" and "go forward () layers" blocks.


http://i48.tinypic.com/f7x4h.png

Offline

 

#4 2012-09-03 13:34:57

Wes64
Scratcher
Registered: 2011-08-19
Posts: 1000+

Re: Go to back?

TheMagician wrote:

^^^ That works, but it also works to have the number be the amount of sprites you have.

I strongly question the absence of the "Go to back" and "go forward () layers" blocks.

well go forward () layers can be done like this

go back (-5) layers


Experienced 2.0 Tester: Ask me questions!
Using Firefox 13.0, Flash plugin version 11.4.402.287, and Windows XP Professional.

Offline

 

#5 2012-09-03 13:44:10

JH1010
Scratcher
Registered: 2012-05-31
Posts: 1000+

Re: Go to back?

we should have a go to back script or not have a go to front script.

Offline

 

#6 2012-09-03 14:26:38

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Go to back?

The go to back script would be "go back (x) layers" where x is the sum of the number of sprites you have and the number of variables/lists you have displayed onscreen.  Most people just play it safe and use a ridiculously large number.

Offline

 

#7 2012-09-03 17:34:43

Prestige
Scratcher
Registered: 2008-12-15
Posts: 100+

Re: Go to back?

There isn't really a reason to have a 'go to back' script. If you want, make a variable with a value equal to the number of sprites in the project and go back that many layers.


"Don't insult someone until you've walked a mile in their shoes. That way, if they don't like what you have to say, you'll be a mile away and still have their shoes  smile  "

Offline

 

#8 2012-09-03 23:32:09

amcerbu
Scratcher
Registered: 2009-07-21
Posts: 500+

Re: Go to back?

Prestige wrote:

There isn't really a reason to have a 'go to back' script. If you want, make a variable with a value equal to the number of sprites in the project and go back that many layers.

^^ Except that the number of layers you have to go back is equal to the number of sprites plus the number of variables/lists shown (each variable gets a layer of its own).  Otherwise you could theoretically end up in front of some other sprites if there are variables near the top of the screen.

Offline

 

Board footer