Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Leopard: Edit Scratch projects as JavaScript code
- PullJosh
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
can we get an update on progress? are this still being worked on or has progressed been haulted.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime.

- Busterk66
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
doesn't work with a lot of undertale projects like GinoMods's DustBelief.
- Cybercircut
-
Scratcher
92 posts
Leopard: Edit Scratch projects as JavaScript code
some of my animations lagged, 

- TheGeniusCoder
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
A project suddenly feels very weak.can we get an update on progress? are this still being worked on or has progressed been haulted.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime.
- theXliner
-
Scratcher
83 posts
Leopard: Edit Scratch projects as JavaScript code
A project suddenly feels very weak.can we get an update on progress? are this still being worked on or has progressed been haulted.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime.
Yep
- PullJosh
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
This project has always been something I've worked on intermittently. It started all the way back in October of 2018. I need a break.A project suddenly feels very weak.can we get an update on progress? are this still being worked on or has progressed been haulted.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime.
If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!- theXliner
-
Scratcher
83 posts
Leopard: Edit Scratch projects as JavaScript code
Actually, about making projects, my first pypi project is young and mature (if that makes sense):This project has always been something I've worked on intermittently. It started all the way back in October of 2018. I need a break.A project suddenly feels very weak.can we get an update on progress? are this still being worked on or has progressed been haulted.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime.If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!
https://github.com/ThatXliner/stacksearch/
https://pypi.org/project/stacksearch/
- firydragony
-
Scratcher
22 posts
Leopard: Edit Scratch projects as JavaScript code
for me, i don't know if it is because it is not finished yet but cloning does not work my clones are supposed to move after appearing but that does not happen and also my inventory detection the game detects the items in the first 3 slots and uses the accordingly but that does not work either.
https://scratch.mit.edu/projects/412892865/
“e” for inventory
“f” to sword throw
“click” to shoot the bow
https://scratch.mit.edu/projects/412892865/
“e” for inventory
“f” to sword throw
“click” to shoot the bow
- TheGeniusCoder
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
Yeah that makes sense. rather you work on it when you feel like it then push yourself and abandon it. Can't wait for the next update thoThis project has always been something I've worked on intermittently. It started all the way back in October of 2018. I need a break.A project suddenly feels very weak.can we get an update on progress? are this still being worked on or has progressed been haulted.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime.If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!
- pufferfish101007
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
A suggestion:
For the username block, you could use scratch-api to attempt to use an existing user session, and if there isn't one, return null, and if there is one, return the username. I don't know whether this is a viable solution or not, or ehether it even needs a solution, but I think it would be cool.
For the username block, you could use scratch-api to attempt to use an existing user session, and if there isn't one, return null, and if there is one, return the username. I don't know whether this is a viable solution or not, or ehether it even needs a solution, but I think it would be cool.
- Maximouse
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
And CORS.A suggestion:That's not possible (I think) due to cookies.
For the username block, you could use scratch-api to attempt to use an existing user session, and if there isn't one, return null, and if there is one, return the username. I don't know whether this is a viable solution or not, or ehether it even needs a solution, but I think it would be cool.
- pufferfish101007
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
Oh ok.And CORS.A suggestion:That's not possible (I think) due to cookies.
For the username block, you could use scratch-api to attempt to use an existing user session, and if there isn't one, return null, and if there is one, return the username. I don't know whether this is a viable solution or not, or ehether it even needs a solution, but I think it would be cool.
- CatsUnited
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
Just use cors anywhere then?And CORS.A suggestion:That's not possible (I think) due to cookies.
For the username block, you could use scratch-api to attempt to use an existing user session, and if there isn't one, return null, and if there is one, return the username. I don't know whether this is a viable solution or not, or ehether it even needs a solution, but I think it would be cool.
- BerBoy876
-
Scratcher
18 posts
Leopard: Edit Scratch projects as JavaScript code
no I say a big fat NOOOOOOOO
- Maximouse
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
Just use cors anywhere then?No, that won't work.
- mrCamelCase
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
no I say a big fat NOOOOOOOO
?
- ElsieBreeze
-
Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
CORS Anywhere wouldn't maintain the existing user session so it couldn't be used to find out the currently logged in user.Just use cors anywhere then?And CORS.A suggestion:That's not possible (I think) due to cookies.
For the username block, you could use scratch-api to attempt to use an existing user session, and if there isn't one, return null, and if there is one, return the username. I don't know whether this is a viable solution or not, or ehether it even needs a solution, but I think it would be cool.
- Joshia_T
-
Scratcher
500+ posts
Leopard: Edit Scratch projects as JavaScript code
Can anyone help me with this project https://leopardjs.now.sh/?id=246577449? for a second I thought that “run without refresh” doesn't work but I don't think that's the case(?) Something I see is that I can't really predict where it's stopping each frame whereas on Scratch I know the sprite stops at the end of the script each frame making the last “go to (0,0)” and “point in direction (90)” return it to center to be seen. You can see the MMenu sprite.js (What is seen in leopard is totally different from scratch)
also, is there a way to see conversion progress? I tried a project with more than 10k blocks and I'm not sure whether its stuck on conversion or its just progressing really slowly.
also, is there a way to see conversion progress? I tried a project with more than 10k blocks and I'm not sure whether its stuck on conversion or its just progressing really slowly.
Last edited by Joshia_T (Aug. 6, 2020 06:13:27)
- ajsya
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
I found a bug that might need to be fixed:
I'm not sure if you know about this or not since I don't feel like reading 9 pages of posts, but in any game where a sprite moves across the screen in Leopard, the sprite can move off the screen and glitch and ruin the game. In Scratch, the sprites can't move much past the edge of the project screen. This is a problem since most games don't take this into account. So you might want to add some kind of border into the code or something. I don't know how this would work because I'm a total noob at javascript but I'm sure you can figure it out.
Also, you might want to add a green flag button to the simulation on the website.
I'm not sure if you know about this or not since I don't feel like reading 9 pages of posts, but in any game where a sprite moves across the screen in Leopard, the sprite can move off the screen and glitch and ruin the game. In Scratch, the sprites can't move much past the edge of the project screen. This is a problem since most games don't take this into account. So you might want to add some kind of border into the code or something. I don't know how this would work because I'm a total noob at javascript but I'm sure you can figure it out.
Also, you might want to add a green flag button to the simulation on the website.
Last edited by ajsya (Aug. 12, 2020 03:04:01)
- apple502j
-
Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
I added bounding box thing in a PR but it kinda breaks something so I'm not touching it. I hope adroitwhiz does something

If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!