Discuss Scratch

electronightrider
Scratcher
18 posts

If (sprite name) showing? block

<[ sprite v] showing?>
medians
Scratcher
1000+ posts

If (sprite name) showing? block

medians wrote:

when green flag clicked
set [page v] to [1]
medians
Scratcher
1000+ posts

If (sprite name) showing? block

medians wrote:

medians wrote:

when green flag clicked
set [page v] to [1]
Could also be this:
<[shown v] of [this sprite v] ::sensing> //bools will change it to this shape

<[hidden v] of [this sprite v] ::sensing>

<[shown v] of [sprite v] ::sensing>
lovelimpan
Scratcher
100+ posts

If (sprite name) showing? block

i think it would be great with a custom block for hide and show (like this)
define hide
hide
set [hiden? v] to [1]

i dont know how to put them as a script sorry

Last edited by lovelimpan (Nov. 21, 2022 18:48:24)

dihectogon
Scratcher
45 posts

If (sprite name) showing? block

lovelimpan wrote:

i think it would be great with a custom block for hide and show (like this)
define hide
hide
set [hiden? v] to [1]

i dont know how to put them as a script sorry
define hide
hide
set [hidden? v] to [true]
set [shown? v] to [false]
define hide
hide
set [hidden? v] to [true]
set [shown? v] to [false]
medians
Scratcher
1000+ posts

If (sprite name) showing? block

medians wrote:

medians wrote:

when green flag clicked
set [page v] to [1]

dihectogon wrote:

define hide
hide
set [hidden? v] to [true]
set [shown? v] to [false]
define show
show
set [shown? v] to [true]
set [hidden? v] to [false]
Annoying to create 2 local vars of the same name for every sprite though, and add this to every sprite.

Last edited by medians (Nov. 23, 2022 18:18:41)

lovelimpan
Scratcher
100+ posts

If (sprite name) showing? block

medians wrote:

medians wrote:

medians wrote:

when green flag clicked
set [page v] to [1]

dihectogon wrote:

define hide
hide
set [hidden? v] to [true]
set [shown? v] to [false]
define show
show
set [shown? v] to [true]
set [hidden? v] to [false]
Annoying to create 2 local vars of the same name for every sprite though, and add this to every sprite.
oh yeah i mean that
Eletiva_ilp_29
Scratcher
50 posts

If (sprite name) showing? block

showing? ::  boolean looks

hidding? ::  boolean looks
medians
Scratcher
1000+ posts

If (sprite name) showing? block

medians wrote:

medians wrote:

when green flag clicked
set [page v] to [1]
medians
Scratcher
1000+ posts

If (sprite name) showing? block

medians wrote:

medians wrote:

medians wrote:

when green flag clicked
set [page v] to [1]
Zydrolic
Scratcher
1000+ posts

If (sprite name) showing? block

A wild DUPLICATE appeared!
Go, DupeBump!
medians
Scratcher
1000+ posts

If (sprite name) showing? block

DangerPuppy10
Scratcher
1000+ posts

If (sprite name) showing? block

bump because dupe

(giant bump)
-ElectronicArts-
Scratcher
1000+ posts

If (sprite name) showing? block

bump
medians
Scratcher
1000+ posts

If (sprite name) showing? block

Prinseskat wrote:


makes sense, I guess. How would the
([ v] of [ v])
block for booleans work/look though? (You can put booleans into the current block, though I don't think it'll work well.)
Maybe it could report true/false, and then you'd be able to put into boolean inputs, or it could be a “visibility” value instead that reports hidden/shown.
BigNate469
Scratcher
1000+ posts

If (sprite name) showing? block

when green flag clicked
if <[this topic v] is [off the front page v]? ::sensing> then
bump [this topic v]:: extension
end

Last edited by BigNate469 (Feb. 20, 2025 17:39:09)

medians
Scratcher
1000+ posts

If (sprite name) showing? block

Bringing this topic up.

Powered by DjangoBB