Discuss Scratch

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

footsocktoe
Scratcher
1000+ posts

Variables behind sprites?

harkster wrote:

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.
asivi
Scratcher
1000+ posts

Variables behind sprites?

harkster wrote:

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

You are hidding us info about your scripts(too usual in this forum)
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?

Scratch-Minion wrote:

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.
I tried that, didn't work.
asivi
Scratcher
1000+ posts

Variables behind sprites?

harkster wrote:

Scratch-Minion wrote:

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.
I tried that, didn't work.
Please, share the project.
harkster
Scratcher
10 posts

Variables behind sprites?

asivi wrote:

harkster wrote:

Scratch-Minion wrote:

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.
I tried that, didn't work.
Please, share the project.
Latest project I have made
Scratch-Minion
Scratcher
1000+ posts

Variables behind sprites?

asivi wrote:

harkster wrote:

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

You are hidding us info about your scripts(too usual in this forum)
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?

Scratch-Minion wrote:

asivi wrote:

harkster wrote:

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

You are hidding us info about your scripts(too usual in this forum)
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).
I'm talking about the ‘scale’ variable smh
EDIT: It did not work.

Last edited by harkster (March 30, 2017 10:05:34)

TheLogFather
Scratcher
1000+ posts

Variables behind sprites?

Scratch-Minion wrote:

(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).

harkster wrote:

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).
100daysummer
Scratcher
85 posts

Variables behind sprites?

_meow_
openPoll
Scratcher
1000+ posts

Variables behind sprites?

Please don't necropost.
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?

Wiseclearglue wrote:

How do you make a sprite say something when a time variable is up?
when [timer v] > (10)
say [Why did you bump this?]
Code

Powered by DjangoBB