Discuss Scratch

Ancoder
Scratcher
1000+ posts

Imagine2D

https://scratch.mit.edu/projects/557673627/ updated with new functions
Ancoder
Scratcher
1000+ posts

Imagine2D

Can we get some activity here tell me what i should add
historical_supa
Scratcher
1000+ posts

Imagine2D

Ancoder wrote:

look: https://scratch.mit.edu/projects/557673627/ <–
turbo mode makes it 0 seconds lol
SuperStickFigures
Scratcher
500+ posts

Imagine2D

historical_supa wrote:

Ancoder wrote:

look: https://scratch.mit.edu/projects/557673627/ <–
turbo mode makes it 0 seconds lol
lol
Ancoder
Scratcher
1000+ posts

Imagine2D

adding keybinds
keyevent.bind("a")
print("Key 'a' was pressed")
end

Last edited by Ancoder (Aug. 3, 2021 15:47:42)

37_Scratch
Scratcher
1000+ posts

Imagine2D

Ancoder wrote:

adding keybinds
keyevent.bind("a")
print("Key 'a' was pressed")
end
Something inside me tells that we are making the D programming language…
keyevent.bind("a")
print("Key 'a' was pressed")
end

Last edited by 37_Scratch (Aug. 3, 2021 16:06:25)

Ancoder
Scratcher
1000+ posts

Imagine2D

Ancoder
Scratcher
1000+ posts

Imagine2D

37_Scratch wrote:

Ancoder wrote:

adding keybinds
keyevent.bind("a")
print("Key 'a' was pressed")
end
Something inside me tells that we are making the D programming language…
keyevent.bind("a")
print("Key 'a' was pressed")
end
its more like lua
Ancoder
Scratcher
1000+ posts

Imagine2D

here is an example of keybinding

keybind has two params key and cooldown
keyevent.bind("a", "1")
print("Key A was pressed")
goto("100", "100")
end
loop()
loop is to listen for a key press if you want to end a script after key press do this:
keyevent.bind("a", "1")
return()
end
loop()
SunshineSparkles647
Scratcher
500+ posts

Imagine2D

37_Scratch wrote:

Ancoder wrote:

adding keybinds
keyevent.bind("a")
print("Key 'a' was pressed")
end
Something inside me tells that we are making the D programming language…
keyevent.bind("a")
print("Key 'a' was pressed")
end
D programming languague-
XD
Ancoder
Scratcher
1000+ posts

Imagine2D

here is how to make a function

function("goto00")
goto("0", "0")
end

calling a function:

"goto00"()
Ancoder
Scratcher
1000+ posts

Imagine2D

default “draw a square” program:

goto("0", "0")
pen.setcolor("#00FF00")
pen.setsize("10")
eraseall()
print("Press 'n' to draw a square!")
function("drawsquare")
pendown()
goto("100", "0")
goto("100", "100")
goto("0", "100")
goto("0", "0")
penup()
resetruntime()
return()
end
keyevent.bind("n", "1")
"drawsquare"()
end
loop()
101Corp
Scratcher
1000+ posts

Imagine2D

ima just make a language now….
37_Scratch
Scratcher
1000+ posts

Imagine2D

Ancoder wrote:

37_Scratch wrote:

Ancoder wrote:

adding keybinds
keyevent.bind("a")
print("Key 'a' was pressed")
end
Something inside me tells that we are making the D programming language…
keyevent.bind("a")
print("Key 'a' was pressed")
end
its more like lua
keyevent.bind("a")
print("Key 'a' was pressed")
end
oh you’re right

Last edited by 37_Scratch (Aug. 3, 2021 18:42:40)

InternetLizard
Scratcher
500+ posts

Imagine2D

we are having once again the EXACT SAME PROBLEM OF TOO MANY PEOPLE DOING THE SAME THING.
WatchAndGame
Scratcher
500+ posts

Imagine2D

37_Scratch wrote:

Ancoder wrote:

37_Scratch wrote:

Ancoder wrote:

adding keybinds
keyevent.bind("a")
print("Key 'a' was pressed")
end
Something inside me tells that we are making the D programming language…
keyevent.bind("a")
print("Key 'a' was pressed")
end
its more like lua
keyevent.bind("a")
print("Key 'a' was pressed")
end
oh you’re right

that actually looks like python + C#
SuperStickFigures
Scratcher
500+ posts

Imagine2D

What did I miss?

new page pog

Last edited by SuperStickFigures (Aug. 3, 2021 19:57:22)

Ancoder
Scratcher
1000+ posts

Imagine2D

i added vars:
"pencolor" = "#00FF00"
pen.setcolor(<pencolor>)
bloctans_4
Scratcher
1000+ posts

Imagine2D

Ancoder wrote:

i added vars:
"pencolor" = "#00FF00"
pen.setcolor(<pencolor>)
good
Marc92020
Scratcher
1000+ posts

Imagine2D

Ancoder wrote:

i added vars:
"pencolor" = "#00FF00"
pen.setcolor(<pencolor>)
is this lua or js

Powered by DjangoBB