Discuss Scratch

ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

This is kind of similar to this topic, but hear me out, it's sort of an improvement

Similar to the idea of visually chaining scripts, this feature would allow scripts to be linked to - sort of like webpage links - from editor comments. If you click on a link, it should teleport to wherever the script is, whether it be inside the same sprite or a different one.

To get a link, all you would have to do is right click the script, click a button to copy the script link to clipboard, and be able to paste into a comment

These links could also work outside of the editor so you can say exactly which script you are having trouble with
thanks Ammophobia for that one

Here's a mockup I made with a userscript :D

Last edited by ajskateboarder (Oct. 8, 2023 16:48:56)

ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Bump
Ammophobia
Scratcher
31 posts

Link to scripts from comments (has a mockup)

Nice idea, one (or maybe two) questions
Would the link work outside of comments in the editor? And if you click on the link, it would relocate you there, right?
ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Ammophobia wrote:

Nice idea, one (or maybe two) questions
Would the link work outside of comments in the editor? And if you click on the link, it would relocate you there, right?
That's also a pretty good idea. If someone has questions about how a certain script works, they can say exactly which script it is

Thanks for the feedback, I hardly ever get any responses on my suggestions
DifferentDance8
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

How would the link even be formatted?
ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

DifferentDance8 wrote:

How would the link even be formatted?
Like a link, obviously

It would use those hashes that you see sometimes to relocate to a script

https://scratch.mit.edu/projects/1234567890/editor#Sprite1-scriptIDsomething (the ID is just a bunch of random stuff that you get from copying the link to the script)

In editor comments, this will be clickable

Last edited by ajskateboarder (Oct. 6, 2023 14:59:01)

ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Bump, there's a mockup now
Zydrolic
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Interesting.
Would help out basically every HwS helper in existance after they remix a project — Just jot down the URLs and changes instead of manually recreating it in the forums or other stuff such as explaining, etc.

Convenient, however if it's being added now, then what about PAST projects? Will it just… skip over them for now? What if you delete the code, what happens to the chainID? Will it turn into a dead link? (edit: actually this is a dumb question but oh well)

Support.

Last edited by Zydrolic (Oct. 8, 2023 17:10:47)

ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Bump

Zydrolic wrote:

Convenient, however if it's being added now, then what about PAST projects? Will it just… skip over them for now?
It wouldn't need to ignore projects in the past since this is not something that has to be done by Scratch's servers. Link annotations would happen on the client
What if you delete the code, what happens to the chainID? Will it turn into a dead link? (edit: actually this is a dumb question but oh well)
Yes, it would become a dead link
Zydrolic
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

ajskateboarder wrote:

(#9)
It wouldn't need to ignore projects in the past since this is not something that has to be done by Scratch's servers. Link annotations would happen on the client
oh im dumb lol
ajskateboarder
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Bump
starlightsparker
Scratcher
1000+ posts

Link to scripts from comments (has a mockup)

Powered by DjangoBB