Discuss Scratch

hello_smile
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Please reclutter!

hello_smile

Achievement: Rickrolled ogadaki.
set [alternate account] to [hello-smile]

hello-smile Signature logo shop
v86
The key to 1000 messages is following hundreds of forum topics.
I am tired of everyone hating on me!
Windows 11 Release
crkcity
Scratcher
10 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

crkcity wrote:

Looks like the new Leopard conversion (lookin good) no longer has frameRate 30 (in index.js). Is the default now 60 frames?
The exported JavaScript never included a specified framerate, it was always something you had to add manually if you wanted it. (Although maybe it should…)

And when you don't specify a framerate, the default behavior is to use 30fps, matching Scratch. That has always been true; nothing has changed.

Hope that helps!

Thanks.

I mean the projects I converted before a few days ago all end with the following in the index.js files:

const project = new Project(stage, sprites, {
frameRate: 30 // Set to 60 to make your project run faster
});

Here's an example: https://codesandbox.io/s/chemical-chaos-bz-reaction-huge-version-1r2wl?file=/index.js

I saved over a dozen converted projects in codesandbox (all converted beautifully!) and all that I saved before this week end with that code “framerate: 30” (I usually changed that to frameRate: 60).

Here's one

That helps to know that the default is 30 fps. Thanks. Superb app
PullJosh
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

kccuber wrote:

Bring in the “Inter” font through google fonts so I don't have to look at the nightmare that's called Segoe UI on my windows 10 PC
Very good idea! I love Inter. I updated the site to use it.
PullJosh
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

hello_smile wrote:

Please reclutter!
Interesting. Which elements of the old site do you miss?
hello_smile
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

hello_smile wrote:

Please reclutter!
Interesting. Which elements of the old site do you miss?
All of it. Screenshot 2 is boring.

hello_smile

Achievement: Rickrolled ogadaki.
set [alternate account] to [hello-smile]

hello-smile Signature logo shop
v86
The key to 1000 messages is following hundreds of forum topics.
I am tired of everyone hating on me!
Windows 11 Release
kccuber
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

kccuber wrote:

Bring in the “Inter” font through google fonts so I don't have to look at the nightmare that's called Segoe UI on my windows 10 PC
Very good idea! I love Inter. I updated the site to use it.
tysm that looks better


Made using Nord Theme & Inkscape
Jaromb
Scratcher
2 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

I develop most of my projects offline for privacy reasons, Would I have to publish them in order to convert to JS?
gosoccerboy5
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Jaromb wrote:

I develop most of my projects offline for privacy reasons, Would I have to publish them in order to convert to JS?
You have to upload them to the Scratch website but you don't have to share them. (I think)

PullJosh
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Jaromb wrote:

I develop most of my projects offline for privacy reasons, Would I have to publish them in order to convert to JS?
Unshared projects should work just fine.
crawly_coder_15
Scratcher
17 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

@pulljosh 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!

search with ecosia.org to plant trees by you just searching! we need to save our world!
move (search) steps
move (plant tree) steps
crawly_coder_15
Scratcher
17 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

[/quote]
if on edge, bounce
Works on some projects but not on some. Fix this to plz

search with ecosia.org to plant trees by you just searching! we need to save our world!
move (search) steps
move (plant tree) steps
PullJosh
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

crawly_coder_15 wrote:

@pulljosh 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!
What happens when you enter a project url and then click the “Edit as JavaScript” button? It should open a nice code editor with the project preview.
PullJosh
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

crkcity wrote:

I saved over a dozen converted projects in codesandbox (all converted beautifully!) and all that I saved before this week end with that code “framerate: 30” (I usually changed that to frameRate: 60).
It's super weird that this behavior has changed. I genuinely have no idea why.

I'm going back to school soon, so my attention is shifting away from my online projects for the time being, but I've opened a Github issue to track the problem. I would like to fix it at some point, but my mind is not in that space right now.

In the meantime, you can always add the frameRate code back manually.
crawly_coder_15
Scratcher
17 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Can you please make leopard support cloud variables, p

search with ecosia.org to plant trees by you just searching! we need to save our world!
move (search) steps
move (plant tree) steps
crawly_coder_15
Scratcher
17 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PullJosh wrote:

crawly_coder_15 wrote:

@pulljosh 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!
What happens when you enter a project url and then click the “Edit as JavaScript” button? It should open a nice code editor with the project preview.
True. But sometimes I just want the project. You don’t have to fix this. And can you make leopard support cloud varubles?

search with ecosia.org to plant trees by you just searching! we need to save our world!
move (search) steps
move (plant tree) steps
PenguinLover1123
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

crawly_coder_15 wrote:

PullJosh wrote:

crawly_coder_15 wrote:

@pulljosh 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!
What happens when you enter a project url and then click the “Edit as JavaScript” button? It should open a nice code editor with the project preview.
True. But sometimes I just want the project. You don’t have to fix this. And can you make leopard support cloud varubles?
A public server for that

Good morning/afternoon/night
TurtleLegos
Scratcher
1000+ posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

Awesome!

BE DRY, MOIST IS TOO MOIST

hey im back! march 3 2024
crawly_coder_15
Scratcher
17 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

PenguinLover1123 wrote:

crawly_coder_15 wrote:

PullJosh wrote:

crawly_coder_15 wrote:

@pulljosh 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!
What happens when you enter a project url and then click the “Edit as JavaScript” button? It should open a nice code editor with the project preview.
True. But sometimes I just want the project. You don’t have to fix this. And can you make leopard support cloud varubles?
A public server for that
What do you mean?

search with ecosia.org to plant trees by you just searching! we need to save our world!
move (search) steps
move (plant tree) steps
PlXELATE
Scratcher
18 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

What leopard could also be good for: publishing Scratch projects on play store or app store

<!DOCTYPE html>

<html>
<head>
<title>Leopardjs is cool<title>
<head>
<html>






maybe some of the code line are wrong lol
PlXELATE
Scratcher
18 posts

Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!

griffpatch wrote:

Leopard is cool!








lol

Powered by DjangoBB