Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » Variables behind sprites?
- harkster
-
Scratcher
10 posts
Variables behind sprites?
I'm having trouble making only the slider show and not the value and the name of the variable.
The code

What it really looks like

The code

What it really looks like

- footsocktoe
-
Scratcher
1000+ posts
Variables behind sprites?
I'm having trouble making only the slider show and not the value and the name of the variable.
The code
What it really looks like
Why would you want only the slider to show?
I don't know of any way to take them apart. The slider and the display are all one unit. And probably always on the top layer, although I'm not sure about that.
I do know the pen is always on the bottom layer so it could never draw over a variable display.
Last edited by footsocktoe (March 29, 2017 00:44:41)
- Scratch-Minion
-
Scratcher
1000+ posts
Variables behind sprites?
The only way I know to cover the value and name is to draw a sprite over the top of these parts.
Use “go to front” so that the sprite covers the parts you want to hide.
Use “go to front” so that the sprite covers the parts you want to hide.
- asivi
-
Scratcher
1000+ posts
Variables behind sprites?
I'm having trouble making only the slider show and not the value and the name of the variable.You are hidding us info about your scripts(too usual in this forum)
The code
What it really looks like
I suspect you have some block for effects in Sprites other than ghost and brigthness wich will be activating the graphic accelerator Stage3D mode, there is a known bug making lists and variables reporters boxes going to front.
- harkster
-
Scratcher
10 posts
Variables behind sprites?
The only way I know to cover the value and name is to draw a sprite over the top of these parts.I tried that, didn't work.
Use “go to front” so that the sprite covers the parts you want to hide.
- asivi
-
Scratcher
1000+ posts
Variables behind sprites?
Please, share the project.The only way I know to cover the value and name is to draw a sprite over the top of these parts.I tried that, didn't work.
Use “go to front” so that the sprite covers the parts you want to hide.
- harkster
-
Scratcher
10 posts
Variables behind sprites?
Latest project I have madePlease, share the project.The only way I know to cover the value and name is to draw a sprite over the top of these parts.I tried that, didn't work.
Use “go to front” so that the sprite covers the parts you want to hide.
- Scratch-Minion
-
Scratcher
1000+ posts
Variables behind sprites?
I'm having trouble making only the slider show and not the value and the name of the variable.You are hidding us info about your scripts(too usual in this forum)
The code
What it really looks like
I suspect you have some block for effects in Sprites other than ghost and brigthness wich will be activating the graphic accelerator Stage3D mode, there is a known bug making lists and variables reporters boxes going to front.
@asivi is quite right.
In Sprite2 (the “Clear” sprite, you have:
set [colour v] effect to (pencolor:)
If you remove this single block that activates Stage3D mode, then you can put a sprite in front of the parts you want to obscure.
It works - I tried it.
(I did not know about this bug, but @asivi states that it is a known bug).
Last edited by Scratch-Minion (March 30, 2017 07:25:52)
- harkster
-
Scratcher
10 posts
Variables behind sprites?
I'm talking about the ‘scale’ variable smhI'm having trouble making only the slider show and not the value and the name of the variable.You are hidding us info about your scripts(too usual in this forum)
The code
What it really looks like
I suspect you have some block for effects in Sprites other than ghost and brigthness wich will be activating the graphic accelerator Stage3D mode, there is a known bug making lists and variables reporters boxes going to front.
@asivi is quite right.
In Sprite2 (the “Clear” sprite, you have:set [colour v] effect to (pencolor:)
If you remove this single block that activates Stage3D mode, then you can put a sprite in front of the parts you want to obscure.
It works - I tried it.
(I did not know about this bug, but @asivi states that it is a known bug).
EDIT: It did not work.
Last edited by harkster (March 30, 2017 10:05:34)
- TheLogFather
-
Scratcher
1000+ posts
Variables behind sprites?
(I did not know about this bug, but @asivi states that it is a known bug).I'm not sure that it's viewed as a ‘bug’ so much as a ‘difference in behaviour’…

It's also the same for the Ask prompt (i.e. you cannot bring a sprite in front of that in Stage3D mode, but you can in normal mode).
EDIT: It did not work.To avoid switching into Stage3D, the project must not have a graphic effect block (except ghost or brightness) *anywhere* within it. Doesn't matter whether it's part of a script or not, whether it's used or not – the block must not be there at all, so the project has to be ‘purged’ of all such blocks.
Once the project is back in normal player mode (not Stage3D) then “go to front” will bring a sprite in front of variable/list watchers (and the Ask prompt).
BTW, one problem I find, once the sprite is in front of the slider, is that I cannot drag the slider. (Though I can drag the watcher itself.
)To fix that I had to recreate the costume in vector mode using rectangles.
I guess it means that transparent pixels within a bitmap costume's bounding rectangle (and within the bounding rect of a bitmap image pasted into a vector costume) can still ‘capture’ a click…?

Last edited by TheLogFather (March 30, 2017 11:03:18)
- whitelily1196
-
Scratcher
100+ posts
Variables behind sprites?
Can you remove
change [color v] effect by (25)?
set [color v] effect to (0)
- whitelily1196
-
Scratcher
100+ posts
Variables behind sprites?
pls share and give me the link so that i can investigate what it is
Last edited by whitelily1196 (Dec. 27, 2017 10:46:24)
- whitelily1196
-
Scratcher
100+ posts
Variables behind sprites?
My scratch volume sliders have no effect blocks
- 100daysummer
-
Scratcher
85 posts
Variables behind sprites?
I think that there is no solution to that because you can't put something(sprite) over it and you can't put the value on the top of the screen(so it can't be seen). 

- Wiseclearglue
-
Scratcher
1 post
Variables behind sprites?
How do you make a sprite say something when a time variable is up?
- WindowsAdmin
-
Scratcher
1000+ posts
Variables behind sprites?
How do you make a sprite say something when a time variable is up?
when [timer v] > (10)Code
say [Why did you bump this?]
- Discussion Forums
- » Help with Scripts
-
» Variables behind sprites?