Discuss Scratch

corgisquidman
Scratcher
18 posts

HTTP Block?

Here's how it would work:
(HTTP [ v] to web address [ ] with contents [ ])
Where the dropdown is POST or GET.
It would allow for the user to send HTTP requests to other servers, allowing for communication between the scratch game and web services.
Here are some of the things that this feature would allow Scratchers to do:
  • Create a google analytics-style graph to see how users are playing their game and what scores they are getting
  • Get the current temperature in an area
  • Write functions that are not possible to create using scratch blocks
Edit: Maybe if the requests returns JSON, a list object would be returned in the Scratch game?

Last edited by corgisquidman (Jan. 16, 2015 21:33:43)

matey1234
Scratcher
1000+ posts

HTTP Block?

If I'm correct, that could be used innapropriately.
AonymousGuy
Scratcher
1000+ posts

HTTP Block?

matey1234 wrote:

If I'm correct, that could be used innapropriately.
ERHMAHGERD IT COULD SEND A REQUEST TO A PHP FILE THAT RETURNED A BAD WORD WHAT WILL WE DOOOOOO


no but in all seriousness, just because one new block could be used inappropriately, that does not mean it is a bad suggestion. The
say []
block could be used to say inappropriate things, but it's still in the Scratch project.

The only difference is that this is referencing an outside source, so yes, the webpage could be changed before the Scratch Team could see it, but I think the pros outweigh the cons.

Support!
rocketclock123
Scratcher
100+ posts

HTTP Block?

matey1234 wrote:

If I'm correct, that could be used innapropriately.
Yeah
matey1234
Scratcher
1000+ posts

HTTP Block?

AonymousGuy wrote:

matey1234 wrote:

If I'm correct, that could be used innapropriately.
ERHMAHGERD IT COULD SEND A REQUEST TO A PHP FILE THAT RETURNED A BAD WORD WHAT WILL WE DOOOOOO


no but in all seriousness, just because one new block could be used inappropriately, that does not mean it is a bad suggestion. The
say []
block could be used to say inappropriate things, but it's still in the Scratch project.

The only difference is that this is referencing an outside source, so yes, the webpage could be changed before the Scratch Team could see it, but I think the pros outweigh the cons.

Support!

-_-

Powered by DjangoBB