Discuss Scratch

BigglesBooks
Scratcher
98 posts

"Go to Front" For Variables and Lists

There should be a “Go to front” block for variables and lists.
(Go to front)

when green flag clicked
forever
set [Brain Power v] to [Infinity]
broadcast [I'm Coding Now v]
wait (0) secs
Code!
end
shd02
Scratcher
100+ posts

"Go to Front" For Variables and Lists

The “show variable” and “show list” blocks make the variable or list go to the front layer.

Last edited by shd02 (Aug. 28, 2016 16:18:10)

awesome-llama-test
Scratcher
100+ posts

"Go to Front" For Variables and Lists

Here is the workaround:
show foo ::custom
define show foo
hide variable [foo v]
show variable [foo v]

Last edited by awesome-llama-test (Aug. 28, 2016 09:52:29)


This is awesome-llama's test account.
BigglesBooks
Scratcher
98 posts

"Go to Front" For Variables and Lists

What I'm referring to is the
go back (5) layers
block, but it could be used for variables and lists as well. For example, you've created a website. It may have a sprite (ex: image of California) go to front, and you don't want the variable to show when the image of California hides again in case it was on a different page. (For the image of California may be able to go to front on any page, but the variable on only one. The website could get really buggy with variables showing on the wrong page, that's all. Just an idea.

when green flag clicked
forever
set [Brain Power v] to [Infinity]
broadcast [I'm Coding Now v]
wait (0) secs
Code!
end
MasterJPixel
Scratcher
500+ posts

"Go to Front" For Variables and Lists

Semi-support. What would this be used for?

This is a closed account.
awesome-llama-test
Scratcher
100+ posts

"Go to Front" For Variables and Lists

support

This is awesome-llama's test account.
Potatobot99
Scratcher
1 post

"Go to Front" For Variables and Lists

Soory… still no make sense
StrangeMagic32
Scratcher
1000+ posts

"Go to Front" For Variables and Lists

No support, variables are mostly meant to store data, and not for displaying data. And as stated, there is an easy work around.


“Remember the worth of souls is great in the sight of God;”
- Doctrine and Covenants 18:10


I have since moved to @JollyWinter
--Waterfall--
Scratcher
500+ posts

"Go to Front" For Variables and Lists

There are incredibly easy workarounds - This isn't really necessary either, and like @StrangeMagic32 said, variables are mostly meant to store data. No support.


TJaunay
Scratcher
11 posts

"Go to Front" For Variables and Lists

How do I make it so my variable numbers go to the front so its not hidden at the back?
ScratchSaif
Scratcher
26 posts

"Go to Front" For Variables and Lists

shd02 wrote:

The “show variable” and “show list” blocks make the variable or list go to the front layer.
??? dosen't work for me

when green flag clicked
broadcast [think v]
when I receive [think v]
if <(idea) = [true]> then
broadcast [work v]
else
wait until <(idea) = [true]>
broadcast [work v]
end
when I receive [work v]
if <(idea) = [able to create]> then
work
get tired
cry
feel happy because i was able to finish my project
broadcast [think v]
else
cry and ask in forums
if <[helped v] = [true]> then
broadcast [work v]
end
end
dominic305
Scratcher
500+ posts

"Go to Front" For Variables and Lists

Support

This is my signature, it appears below all of my posts.
Certified Tech Nerd
I make technical projects here on Scratch, but I also know C++ and Java.

I’m still here, I just don’t do much
leahcimto
Scratcher
1000+ posts

"Go to Front" For Variables and Lists

TJaunay wrote:

How do I make it so my variable numbers go to the front so its not hidden at the back?
You can do the following code:
Method one (making a block)
define bring score to front
hide variable [score v]
show variable [score v]
Then you could use the block you made in the project.

Method two (easier)
hide variable [score v]
show variable [score v]
You can put that code wherever and it will bring the variable to the front layer.

Powered by DjangoBB