Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
- 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!
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…) Looks like the new Leopard conversion (lookin good) no longer has frameRate 30 (in index.js). Is the default now 60 frames?
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!
Very good idea! I love Inter. I updated the site to use it. 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
- PullJosh
- Scratcher
1000+ posts
Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
Interesting. Which elements of the old site do you miss? Please reclutter!
- hello_smile
- Scratcher
1000+ posts
Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
All of it. Screenshot 2 is boring.Interesting. Which elements of the old site do you miss? 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
- kccuber
- Scratcher
1000+ posts
Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
tysm that looks betterVery good idea! I love Inter. I updated the site to use it. 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
- 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!
You have to upload them to the Scratch website but you don't have to share them. (I think) I develop most of my projects offline for privacy reasons, Would I have to publish them in order to convert to JS?
- PullJosh
- Scratcher
1000+ posts
Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
Unshared projects should work just fine. I develop most of my projects offline for privacy reasons, Would I have to publish them in order to convert to JS?
- 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]Works on some projects but not on some. Fix this to plz
if on edge, bounce
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!
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 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!
- PullJosh
- Scratcher
1000+ posts
Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
It's super weird that this behavior has changed. I genuinely have no idea why. 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).
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!
True. But sometimes I just want the project. You don’t have to fix this. And can you make leopard support cloud varubles?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 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
- PenguinLover1123
- Scratcher
1000+ posts
Leopard: Convert Scratch projects to JavaScript AUTOMATICALLY!
A public server for thatTrue. But sometimes I just want the project. You don’t have to fix this. And can you make leopard support cloud varubles?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 8 have a error with the new leopard thing. It doesn’t show the project output. can you plz fix this!
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!
What do you mean?A public server for thatTrue. But sometimes I just want the project. You don’t have to fix this. And can you make leopard support cloud varubles?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 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
- 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
<!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!
Leopard is cool!
lol