Discuss Scratch
- Discussion Forums
- » Help with Scripts
- » How to hack your own magic custom blocks
- awesomeness01
-
97 posts
How to hack your own magic custom blocks
1: No clear way to do this.Easy! First make a project in scratch and make it beYou mean Never mind, I figured them both out.
EDIT: I have one more question though. Can I make a custom block set itself to a variable? In my score engine I'm trying to make a "Create score at X: () Y: () With a size of: () Using the variable: (var drop down menu)? If so, just do %m.var in the variable name. For a complete list of dropdown list values, go here.Create score at X: (x) Y: (y) With size of (size) With variable [variable v] :: custom
Thanks for helping, but that's not what I'm having a problem with. This is:define Create score at X: (x) Y: (y) Using the variable: (drop down)
say (drop down)
The script, when run, would say whatever the variable's name is, and not it's value. That's what I'm having trouble with. Thanks for helping though.define Create Score at X: (x) Y: (y) Using the variable [variable]and change “… using variable %s …” to “… using variable %m.var …”. Your custom block now looks like this:
say (variable)Create score at X: (x) Y: (y) with variable [variable v] :: custom
2: Why would you need a drop down menu when you could just do this?
create score at x: (x) y: (y) with number (number) :: custom
and the definition of that block be:
define create score at x: (x) y: (y) Using number: (number)
say (number)

- rockdogs
-
7 posts
How to hack your own magic custom blocks
Could someone please explain to me what this “hack” does?
Please?
Thanks to all those who respond
Please?
Thanks to all those who respond

- Tropic
-
1000+ posts
How to hack your own magic custom blocks
Could someone please explain to me what this “hack” does?You can for example add things to a list that doesn't exist yet by using this hack
Please?
Thanks to all those who respond

- fit232
-
18 posts
How to hack your own magic custom blocks
oh ya how about THIS HACK >
tu

tu
turn ccw (1000) degrees
- fit232
-
18 posts
How to hack your own magic custom blocks
I meant
when green flag clicked
turn ccw (move (move(move(move()steps)steps)steps) steps)degrees
set pen color to [set pen color to [bla bla bla]
think [I hate hacks bad hacks are worse] for (2) secs
- lemonbattery
-
9 posts
How to hack your own magic custom blocks
if <[scratchblocks]> then
<key [π v] pressed?>
[/scratchblocks]
turn ccw ( :all around. What's a: list) degrees
end
- zooey18
-
4 posts
How to hack your own magic custom blocks
when this sprite clicked
stop all sounds
broadcast [here]
forever
set [this] to [79 guys]
wait until <moo>
if wallpaper
then
show variable [hahaha guys]
show list [yo uo po]
turn cw (15) degrees
turn video [on]
next backdrop
end
- starwarsking
-
3 posts
How to hack your own magic custom blocks
problem: I'm on a chrome book. how do I do this?
- starwarsking
-
3 posts
How to hack your own magic custom blocks
how do you open File>>Export?
- endermanjd
-
37 posts
How to hack your own magic custom blocks
Could someone please explain to me what this “hack” does?harharhahdharhahrh guess what? did you know that those blocks repeate UNTIL your awesome.
Please?
Thanks to all those who respond
- starwarsking
-
3 posts
How to hack your own magic custom blocks
how do you just open File>>Export?
- fit232
-
18 posts
How to hack your own magic custom blocks
do you like this huh?

say[gluff] for (111) secsfigure the problem within the block's.
then play sound [bla bla bla v] until done
fit232 (???) awesome
with scratch
- juausuoun
-
36 posts
How to hack your own magic custom blocks
say [say [say [say [say [say [say [say [] for (2) secs] for (2) secs]say [say [] for (2) secs] for (2) secs for (2) secs] for (2) secs] for (2) secs] for (2) secs] for (2) secs] for (2) secs
- Tropic
-
1000+ posts
How to hack your own magic custom blocks
Looks a bit better nowsay (say (say (say (say (say (say (say [] for (2) secs) for (2) secs) for (2) secs) for (2) secs) for (2) secs) for (2) secs) for (2) secs

- thirdlion
-
20 posts
How to hack your own magic custom blocks
look if you go in to the Jason files you can edit a key sensor to do this
when green flag clicked
wait until <key [ @] pressed?>
- awesomeness01
-
97 posts
How to hack your own magic custom blocks
Or… look if you go in to the Jason files you can edit a key sensor to do thiswhen green flag clicked
wait until <key [ @] pressed?>
when green flag clicked
wait until <key [ @ v] pressed?>
- juausuoun
-
36 posts
How to hack your own magic custom blocks
Looks a bit better nowsay (say (say (say (say (say (say (say [] for (2) secs) for (2) secs) for (2) secs) for (2) secs) for (2) secs) for (2) secs) for (2) secs
Lol

- juausuoun
-
36 posts
How to hack your own magic custom blocks
<key [& v] pressed?>
<key [&] pressed?>
- Discussion Forums
- » Help with Scripts
-
» How to hack your own magic custom blocks