Discuss Scratch

Jennifer_luis
Scratcher
9 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

how to convert scratch projects into java projects
god286
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Jennifer_luis wrote:

how to convert scratch projects into java projects
For java it hasn't been made, but for JavaScript you have 2 options:
Use https://packager.turbowarp.org/ which turns your code into JavaScript but is not readable by humans,
Use Leopard https://leopardjs.com/ which turns your code into JavaScript but is readable by humans, although a bit buggy

Here are some of my followers!

I joined: 5 years, 9 months, 24 days ago (31/03/2018)
I have: 479 followers
In total, I have attained: 1,403 loves, 1,145 favourites, and 33,731 views.
Fun Fact: If my account continued to gain followers at a similar rate to right now, in 14,210 years I would reach the number of followers griffpatch has today! Try to imagine how many followers he would have then!
Thank you everyone!
Script created by god286.
CakeConsumer
Scratcher
5 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

?????????????????????
when green flag clicked
say [???????????????????????//] for (2) secs
say [Question Mark]

CakeConsumer
cppappdeveloper
Scratcher
4 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

hey, the while loop works in leopard
code for while loop:
while (this.stage.vars.myVariable == 50) {
this.say(“the while loop is here! see inside! ”);
yield;
}
hacktronics
Scratcher
100+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Amazing, could you separate the user script in a separate file with simple code for easier editing, I mean the base classes, and plumbing code should be in some other file. The user script should have simple code like:
*whenGreenFlagClicked() {
while (true) {
this.move(10);
yield* this.wait(1);
this.say(“Hello!”);
yield;
}
}

CodeSkool: Beyond Scratch with ML, AI, Python, HTML5, Arduino, Games…
Forza876
New to Scratch
1 post

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

How can I use Leopard on sb3 files?
CakeConsumer
Scratcher
5 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

IDK

CakeConsumer
_SNIPR-
Scratcher
37 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Forza876 wrote:

How can I use Leopard on sb3 files?
Not too sure

Cutting myself just to feel something
What's the point in having love with no pain?
What's the point in having blood with no veins?
Wake up and take your own advice!
Why you act like I'm not a part of this?
You can't get rid of all of me!
I thought I told you to keep your mouth shut!
What you don't like being afraid?
My therapist told me not to bury my issues but I ain't gonna lie I'm feeling great!
I thought you had me imprisoned this whole time, but I'm the one holding the keys!
ssvbxx2
Scratcher
100+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

There's a bug with the LeopardJS converter. If you set a variable to an empty value, it is converted to zero. I first saw it in this project I made: https://scratch.mit.edu/projects/647292972

I'm ssvbxx2. I make a variety of original projects: games, animations, etc.

(Tile Scrolling Project | Square Root Calculator | Scratchy & Friends)

Last edited by kaj (Next year 00:00:00)
CakeConsumer
Scratcher
5 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

?????????????????????

CakeConsumer
comunicazione
Scratcher
15 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

Projects now run at 30fps by default (the same as Scratch)!
You can still opt-in to 60fps by changing the frameRate option in index.js.

This will ensure that more projects run the same way they do on Scratch. And if you prefer a smoother project, it's easy to make that change yourself!

(This update was not as challenging as I expected.)

I don't see this option in my index.js at https://codesandbox.io/s/e6l7ud?file=/index.js:19-21&resolutionWidth=500&resolutionHeight=400. Am I supposed to add it?
comunicazione
Scratcher
15 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

Sprite layering blocks are now supported in Leopard!
That's right! Go to front/back and go forward/backward work now!

As the layering of the sprites of my project https://scratch.mit.edu/projects/649107588/ is different in Leopard I added a “go to front” block to the a3 sprite, but I just found a

/* TODO: Implement looks_gotofrontback */ null;

in the js code. Have I to change this to

this.moveAhead();

manually?
_SNIPR-
Scratcher
37 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

When I make a clone and rhen move it off the screen. The clone response back on screen. Why? And how fix??

Cutting myself just to feel something
What's the point in having love with no pain?
What's the point in having blood with no veins?
Wake up and take your own advice!
Why you act like I'm not a part of this?
You can't get rid of all of me!
I thought I told you to keep your mouth shut!
What you don't like being afraid?
My therapist told me not to bury my issues but I ain't gonna lie I'm feeling great!
I thought you had me imprisoned this whole time, but I'm the one holding the keys!
Minestreem
Scratcher
33 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

ok im gonna unfollow this topic

when I receive [a problem v]
ask [help] and wait
if <[problem] = [solved]> then
play sound [applause v]
else
repeat until <[i am satisfied] = [true]>
ask [help] and wait

end
Darkmoon9307
Scratcher
14 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

I have this project that uses clones to make snow, but the clones don't fall. Help?

oh no

the kumquats are coming
Darkmoon9307
Scratcher
14 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Devin_Scratch wrote:

Leopard seems so cool but the only thing i can get to work is the example and not even a simple test that i made to try it even when i press edit as js
when I try to use Leopard :: hat events
(It doesn't work :: sensing)and<I get triggered :: stack> ::stack
if<I am mad> :: control
Rage
Then not really because i'm not a rager :: motion
Exactly!

Leopard's still cool though

oh no

the kumquats are coming
_SNIPR-
Scratcher
37 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Darkmoon9307 wrote:

Devin_Scratch wrote:

Leopard seems so cool but the only thing i can get to work is the example and not even a simple test that i made to try it even when i press edit as js
when I try to use Leopard :: hat events
(It doesn't work :: sensing)and<I get triggered :: stack> ::stack
if<I am mad> :: control
Rage
Then not really because i'm not a rager :: motion
Exactly!

Leopard's still cool though

Ummm leopard does work.

Cutting myself just to feel something
What's the point in having love with no pain?
What's the point in having blood with no veins?
Wake up and take your own advice!
Why you act like I'm not a part of this?
You can't get rid of all of me!
I thought I told you to keep your mouth shut!
What you don't like being afraid?
My therapist told me not to bury my issues but I ain't gonna lie I'm feeling great!
I thought you had me imprisoned this whole time, but I'm the one holding the keys!
GalaxyLinus
Scratcher
1 post

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Can I make Leopard run fullscreen?
ndtrung84
Scratcher
26 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

CakeConsumer wrote:

IDK
when I receive [Hello]
add [Bello] to [list of hellos]
-ElectronicArts-
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Vann_Nordin wrote:

when [ scratch ] button pressed
say [...]
repeat (round (timer))
move (timer) steps
turn cw (timer) degrees

end

ndtrung84 wrote:

CakeConsumer wrote:

IDK
when I receive [Hello]
add [Bello] to [list of hellos]
dont spam please

Powered by DjangoBB