Discuss Scratch

cyclopian
Scratcher
2 posts

Leopard: Edit Scratch projects as JavaScript code

Hey, wanted to say thanks man I really appreciate the time and effort you put into my project. Have a good day.
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

cyclopian wrote:

Hey, wanted to say thanks man I really appreciate the time and effort you put into my project. Have a good day.
I'm happy to help!
EV2048
Scratcher
33 posts

Leopard: Edit Scratch projects as JavaScript code

Leopard wrote:

Why doesn't this project work? Well good question!
Good question indeed

Orange_Gumdrop
Scratcher
9 posts

Leopard: Edit Scratch projects as JavaScript code

My browser / operating system: Windows NT 10.0, Chrome 126.0.0.0, No Flash version detected

Hello, I have a project it am trying to convert to js but im not sure why it gets the error where “Cannot read properties of undefined (reading ‘value’)”
i am really not sure why this happens, and here is the link to the project i am trying to convert so maybe you can try to do it yourself. (if it works on our side somehow)

Link here!

According to forums that help in debugging JavaScript, “Cannot read properties of undefined (reading ‘value’)” means that a variable was not initialised, but I figured that there would be no reason why this will happen as I don't think that the converter will run a piece of code that will have a error in it, but I did not design leopardjs, so correct me if I am mistaken.
Please help!

Last edited by Orange_Gumdrop (July 19, 2024 08:43:23)

Saruman3
Scratcher
5 posts

Leopard: Edit Scratch projects as JavaScript code

I have question!
I am a geran Scratcher and i want to learn javaskript! I try to find the block translation, but i cant found it!
@PullJosh
can u help me, pls?
Waakul
Scratcher
25 posts

Leopard: Edit Scratch projects as JavaScript code

Where can i find the block translations?
Waakul
Scratcher
25 posts

Leopard: Edit Scratch projects as JavaScript code

How do i set the size of the project to 100% both width and height? it automatically becomes 480px x 360px on start?
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

Waakul wrote:

Where can i find the block translations?
If you create a project using the “Leopard Editor” option in the dropdown menu, the translations will be available at the bottom of the screen.

Waakul wrote:

How do i set the size of the project to 100% both width and height? it automatically becomes 480px x 360px on start?
The canvas is 480x360 but you can scale it up or down using CSS by setting width: 100%. But if you take the small stage and scale it up to be way bigger it might become blurry. So you can also change the actual stage coordinates to be larger like this.
dynamicsofscratch
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

A Scratch to Python version of Leopard would be really cool. (suggestion)
dumorando
Scratcher
100+ posts

Leopard: Edit Scratch projects as JavaScript code

i like how leopard is its own platform now, thats pretty awesome
dumorando
Scratcher
100+ posts

Leopard: Edit Scratch projects as JavaScript code

dynamicsofscratch wrote:

A Scratch to Python version of Leopard would be really cool. (suggestion)
that already exists

let me see if i can find it
redspacecat
Scratcher
500+ posts

Leopard: Edit Scratch projects as JavaScript code

dumorando
Scratcher
100+ posts

Leopard: Edit Scratch projects as JavaScript code

okay ive posted on this topic a lot but i wanna say this is the most fun ive ever had with a javascript game engine. thank you pulljosh for making it

https://leopardjs.com/users/dumorando heres some projects i made with it
not_HOME
Scratcher
9 posts

Leopard: Edit Scratch projects as JavaScript code

My project doesn't seem to work.

https://scratch.mit.edu/projects/1052429835/

I can't convert it from an sb3 file, and when I try to download it in zip format, I get the following error.
{“error”:“Cannot read properties of undefined (reading ‘value’)”}
What should I do?
(The assets are small, 3.5MB, and the json file is 2MB, with list data taking up about half of it.)
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

dynamicsofscratch wrote:

A Scratch to Python version of Leopard would be really cool. (suggestion)
You should check out Patch! My friends at BX Coding are working on it.
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

not_HOME wrote:

My project doesn't seem to work.

https://scratch.mit.edu/projects/1052429835/

I can't convert it from an sb3 file, and when I try to download it in zip format, I get the following error.
{“error”:“Cannot read properties of undefined (reading ‘value’)”}
What should I do?
(The assets are small, 3.5MB, and the json file is 2MB, with list data taking up about half of it.)
That's a great question! If you're willing, it would be great if you would post this under “Cleanup Crew” for the Leopard mentors to investigate.
PullJosh
Scratcher
1000+ posts

Leopard: Edit Scratch projects as JavaScript code

dumorando wrote:

okay ive posted on this topic a lot but i wanna say this is the most fun ive ever had with a javascript game engine. thank you pulljosh for making it

https://leopardjs.com/users/dumorando heres some projects i made with it
I am so glad to hear that!

I really love your localStorage project. That's a fantastic way to show off the features of JavaScript that are impossible to do in Scratch. There should really be a way to show off excellent projects like this to the community. I might work on adding some kind of “featured projects” area to the front page…
not_HOME
Scratcher
9 posts

Leopard: Edit Scratch projects as JavaScript code

Apparently the block that specifies the pen color (saturation, brightness, transparency) was not converted properly, which caused the error…

Last edited by not_HOME (Aug. 8, 2024 02:37:42)

--CHA0S--
Scratcher
100+ posts

Leopard: Edit Scratch projects as JavaScript code

I tried to transfer my project thirdly into JavaScript using leopard, but it lead to an error. This project only uses the one extension, which the error code said it supports. What is the reason for the error?
not_HOME
Scratcher
9 posts

Leopard: Edit Scratch projects as JavaScript code

--CHA0S-- wrote:

This project only uses the one extension, which the error code said it supports
Perhaps you are using a block that specifies the pen color (brightness, saturation, transparency)?

Last edited by not_HOME (Aug. 15, 2024 00:13:48)

Powered by DjangoBB