Discuss Scratch

awesomeness01
Scratcher
97 posts

How to hack your own magic custom blocks

awesomeness01 wrote:

Alexcamostyle wrote:

awesomeness01 wrote:

Alexcamostyle wrote:

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)
You mean
Create score at X: (x) Y: (y) With size of (size) With variable [variable v] :: custom
? If so, just do %m.var in the variable name. For a complete list of dropdown list values, go here.

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.
Easy! First make a project in scratch and make it be
define Create Score at X: (x) Y: (y) Using the variable [variable]
say (variable)
and change “… using variable %s …” to “… using variable %m.var …”. Your custom block now looks like this:
Create score at X: (x) Y: (y) with variable [variable v] :: custom
1: No clear way to do this.
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)

What If by awesomeness01
The absurd scientific question forum/studio: Studio/Forum
As the JavaScript goes…
var kumquat = new evilKumquat();
kumquat.eatSignature(“cheddargirl”);
kumquat.eatIcon(“Chibi-Matoran”);

Use the above code now! See this forum link.
rockdogs
Scratcher
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

repeat until <(rockdogs is awesome) = [true]>
say [Admit it! You know it's true.]
end
lemonbattery
Scratcher
9 posts

How to hack your own magic custom blocks

when [bob v] key pressed
Tropic
Scratcher
1000+ posts

How to hack your own magic custom blocks

rockdogs wrote:

Could someone please explain to me what this “hack” does?
Please?
Thanks to all those who respond
You can for example add things to a list that doesn't exist yet by using this hack



My browser / operating system: Windows NT 10.0, Firefox 40.0.2, Flash 20.0 (release 0)
Last eaten by Evil Kumquat (Today 19:30:11)
when I receive [flash_player_version] :: motion
say [Windows 7, Flash 15.0 (release 0)] :: sensing
stop script :: custom
Tropical Productions
fit232
Scratcher
18 posts

How to hack your own magic custom blocks

oh ya how about THIS HACK >


tu
turn ccw (1000) degrees
fit232
Scratcher
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
fit232
Scratcher
18 posts

How to hack your own magic custom blocks

lemonbattery
Scratcher
9 posts

How to hack your own magic custom blocks



if <[scratchblocks]
<key [π v] pressed?>
[/scratchblocks]
> then
turn ccw ( :all around. What's a: list) degrees
end
zooey18
Scratcher
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
Scratcher
3 posts

How to hack your own magic custom blocks

problem: I'm on a chrome book. how do I do this?
starwarsking
Scratcher
3 posts

How to hack your own magic custom blocks

how do you open File>>Export?
endermanjd
Scratcher
37 posts

How to hack your own magic custom blocks

rockdogs wrote:

Could someone please explain to me what this “hack” does?
Please?
Thanks to all those who respond
harharhahdharhahrh guess what? did you know that those blocks repeate UNTIL your awesome.

endermanjd :: operators
is awesome! :: sound
starwarsking
Scratcher
3 posts

How to hack your own magic custom blocks

how do you just open File>>Export?
fit232
Scratcher
18 posts

How to hack your own magic custom blocks

do you like this huh?
say[gluff] for (111) secs
then play sound [bla bla bla v] until done
fit232 (???) awesome
with scratch
figure the problem within the block's.
juausuoun
Scratcher
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

“I have found it”
Tropic
Scratcher
1000+ posts

How to hack your own magic custom blocks

juausuoun wrote:

say (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
Looks a bit better now



My browser / operating system: Windows NT 10.0, Firefox 40.0.2, Flash 20.0 (release 0)
Last eaten by Evil Kumquat (Today 19:30:11)
when I receive [flash_player_version] :: motion
say [Windows 7, Flash 15.0 (release 0)] :: sensing
stop script :: custom
Tropical Productions
thirdlion
Scratcher
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
Scratcher
97 posts

How to hack your own magic custom blocks

thirdlion wrote:

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?>
Or…
when green flag clicked
wait until <key [ @ v] pressed?>

What If by awesomeness01
The absurd scientific question forum/studio: Studio/Forum
As the JavaScript goes…
var kumquat = new evilKumquat();
kumquat.eatSignature(“cheddargirl”);
kumquat.eatIcon(“Chibi-Matoran”);

Use the above code now! See this forum link.
juausuoun
Scratcher
36 posts

How to hack your own magic custom blocks

Tropic wrote:

juausuoun wrote:

say (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
Looks a bit better now

Lol

“I have found it”
juausuoun
Scratcher
36 posts

How to hack your own magic custom blocks

<key [& v] pressed?>
<key [&] pressed?>

“I have found it”

Powered by DjangoBB