Discuss Scratch
- Discussion Forums
- » Advanced Topics
- » Leopard: Edit Scratch projects as JavaScript code
- PullJosh
- Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
I've been focusing on other things lately. It's definitely possible that I'll return to this sometime. can we get an update on progress? are this still being worked on or has progressed been haulted.
- Busterk66
- Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
doesn't work with a lot of undertale projects like GinoMods's DustBelief.
Genie
A guy/blue fox on the internet/stick figure on Scratch
He/Him
I don't really use Scratch much anymore, don't expect much.
- Cybercircut
- Scratcher
89 posts
Leopard: Edit Scratch projects as JavaScript code
some of my animations lagged,
I'm just a normal scratcher who LOVES to make and come follow me @cybercircut for great animations. #SFFF #STGP #STMR
STOP MASS REPORTING
- TheGeniusCoder
- Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
A project suddenly feels very weak.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime. can we get an update on progress? are this still being worked on or has progressed been haulted.
I'm someone who loves to code and make people happy please check out my profile @TheGeniusCoder follow, comment love, favorite, or do whatever.
- theXliner
- Scratcher
83 posts
Leopard: Edit Scratch projects as JavaScript code
A project suddenly feels very weak.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime. can we get an update on progress? are this still being worked on or has progressed been haulted.
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. If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!A project suddenly feels very weak.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime. can we get an update on progress? are this still being worked on or has progressed been haulted.
- 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. If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!A project suddenly feels very weak.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime. can we get an update on progress? are this still being worked on or has progressed been haulted.
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. If there's someone else who's talented and wants to continue pushing Leopard forward, that would be great!A project suddenly feels very weak.I've been focusing on other things lately. It's definitely possible that I'll return to this sometime. can we get an update on progress? are this still being worked on or has progressed been haulted.
I'm someone who loves to code and make people happy please check out my profile @TheGeniusCoder follow, comment love, favorite, or do whatever.
- 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.That's not possible (I think) due to cookies. 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.
- pufferfish101007
- Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
Oh ok.And CORS.That's not possible (I think) due to cookies. 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.
- CatsUnited
- Scratcher
1000+ posts
Leopard: Edit Scratch projects as JavaScript code
Just use cors anywhere then?And CORS.That's not possible (I think) due to cookies. 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.
bottom text
- 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
No, that won't work. Just use cors anywhere then?
- mrCamelCase
- Scratcher
100+ posts
Leopard: Edit Scratch projects as JavaScript code
no I say a big fat NOOOOOOOO
?
“A lie told often enough becomes the truth.”
-Benjamin Franklin, 1532
^ Food for thought. Yum! ^
- 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.That's not possible (I think) due to cookies. 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.
- 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
署名は、ディスカッションフォーラムの機能である。署名は、その人のすべての投稿の下部に追加される。署名は、BBCodeで記述できる。 署名を追加/変更/削除したい場合は、ディスカッションフォーラムのホームの一番下に行き、「Change your signature」を押す。署名の大きさは150pxまでである。これには、改行、画像を含む。- Japanese Scratch-Wiki 「署名」