Topic closed
If you are going to add the ability to call web services in scratch, you'll need some facilities for parsing XML. That would include being able to create XML in preparation to calling a web service and being able to pull attributes and data out of an XML string.
Offline
BoltBait wrote:
If you are going to add the ability to call web services in scratch, you'll need some facilities for parsing XML. That would include being able to create XML in preparation to calling a web service and being able to pull attributes and data out of an XML string.
I like the idea of a (parse [ some ridiculous xpath notation ] from [ string ]) reporter, but in the name of ease of use, maybe some blocks like (attribute [name] of [node]) and (item [number] of [XML string's] nodes called [node name]) ?
Last edited by fullmoon (2009-11-12 14:19:39)

Offline
Yes, I'm sure the Scratch Team will come up with an easy access way to handle the XML. I was just throwing the thought out there so that they wouldn't forget that we would need something like this.
I would love to be able to read RSS feeds with a scratch project.
I can also imagine writing a game server web service that could be consumed by a Scratch project... you know, something along the lines of hooking players up to play against each other while recording games in a database for later reporting (by another project)... think tourney ladders, people watching tourney games in process (or at a later date), etc.
The mind boggles.
Offline
Jonathanpb wrote:
Maybe people could make a project where you can see what percentage of the projects on Scratch are yours. If Scratch could check how many projects there are on the website, and how many projects you have (or the program asks you to input the number in), you could do it!
Or like in that project by illusionist, What scratcher are you?, where it asks for how many projects of each type you had. You could use tags. Maybe you could also find the ratio of love-its to veiws. Or what percentge of the scratch population is on your friends list. Or how many projects an average user makes. The possibilities are really endless.
I also like the weather idea too. You could take forcasts and turn them into a project. Like searching in a certain area for the current weather conditions and a five day forecast. Or perhaps a weather simulation that animates the current conditions (example: if the wind speed is over a certain mph or km/h, play a certain wind animation)
Offline
What also might be cool is if you could get the date and time at different locations if it is on a website...
Offline
greenflash wrote:
What also might be cool is if you could get the date and time at different locations if it is on a website...
Or maybe a check in game. When a user plays it checks in that time so maybe it could keep a data of when users play!
Offline
Hey Scratch Team, is this any hint of using web data in Scratch?
Like Fullmoon suggested somewhere, he made a post for a 'URL' block. May I suggest:
<url 'blah' exists> if such URL exists
<url 'blah'> useful for making a sprite switch to a costume of the URL, or reading a feed
reload url 'blah' reloading a URL if it is not working
<url 'blah' 's headings> can only be compiled into a list. Can also sense the title, subheadings, etc.
It may be far-fetched, but
set url 'blah' HTML to 'blah'
And maybe some HTML blocks to read?
Offline
Lucario621 wrote:
Magnie wrote:
This re-minds me of NetScratch
Maybe it could save data or text or a variable or a list. ( Kinda like the other ideas you have )
Some uses could be:
1. Scratch Email!![]()
2. Scratch Internet!( I'm making this in BYOB 2.0 with the Mesh feature. )
3. I don't think Scratch Chat could be used with that.
4. Maybe reading the forums from Scratch! ( That would be awesome! )
5. Reading Comments!
6. I'm not sure what else... But if you allow it to write data ( Text and Variables and Lists as I said above ) you could do SO MUCH with it!
That's all.![]()
The thing is, why would you want to do that in a scratch project, when you could actually open a web browser and do most of those things. No internet? Well then you wouldn't be able to have scratch connect to get those things.
But yeah this reminds me of netscratch.
I especially wanna focus on high score tables and such. For that though, I think all users could create a table at like http://scratch.mit.edu/users/Lucario621/data, and each user would have one for themselves to use for their games. It could have a link to a website, to get info from their, or something else. This way people are limited so servers don't pile up with data. Depends if you need to limit it or not.
they could use internet on a scratch OSs
Offline
adriangl wrote:
greenflash wrote:
What also might be cool is if you could get the date and time at different locations if it is on a website...
Or maybe a check in game. When a user plays it checks in that time so maybe it could keep a data of when users play!
On an RPG that sets game time to acual time.
Offline
chalkmarrow wrote:
5. Appetite suppressant: Read the mediafoodcam tweets; when there's a new one, pull a random image with the keyword "roadkill" and send it to andresmh as a Twitpic
![]()
hahaha good one!
Offline
I was just talking to my 11 year old, an ardent scratch programmer, about this.
Once you open up the ability to do web calls, you open open the language to call any web services. Extensions to scratch are then a matter writing the web services in the language of your choice, or even using existing web services (e.g., twitter).
Here are some of the things we came up with:
1) An aquarium game where the fish behaviors are defined by multiple users, and the fish interact. This was how the conversation started, btw, because there is a system like this at the Boston Museum of Science. My daughters were trying to figure out how to make such a system in scratch.
2) Scratch sprites which are controlled by polling web services. For example, there is web service for from NOAA which returns weather forecasts. You could write a sprite which is dresses appropriately for the weather
3) Cooperative weather reporting where the users at different locales report the weather, and each user would report the weather for their local. All users could get the information from the web service.
#1 and #3 require custom web services, presumably in some language other than scratch. Maybe custom server code for each could be circumvented by have a blackboard service of some sort.
Just thinking out loud.....
Offline
Maybe a function to see the last forum post, or which members that are online in the forums.
And maybe a function that let's Scratch users get data/stats from their own websites.
One way to do this could be to add a certain script to a website which a Scratch project could read.
I'm not very good on explaining things in English, so if you wonder anything feel free to ask.

Offline
a working scratch os
the ability for a scratch mmorpg to be made on the site that didn't involve scratchers to change their settings turn off their firewalls, or download something new (other then a new version of scratch of course)
Offline
MMO's are possible right now, but extremely hard, even with Mesh in BYOB 2.0
Offline
An idea i had was to make something called Scratch Scores. In Scratch's game maker, it would have a checkable Score variable. If it was checked, the game would keep track of the top 10 scores online. When all scripts stop, the game would show the top ten in a list called Scratch Scores. If you were in the top ten, you could choose to be notified if anyone beats you.
Hope you like that idea!

Offline
I could make waveOS web with that!!
Offline
Maybe a way to save data in the game? Like maybe they create a password which is sent to the server and it saves all the data in it.
That would be really useful.
Offline
floatingmagictree wrote:
Maybe a way to save data in the game? Like maybe they create a password which is sent to the server and it saves all the data in it.
That would be really useful.
But then it would only save online, which is where most games are really laggy.
Please leave a message at the beep.Offline
Hi, the Billboard and Youtube project you metioned sounds like a mashup to me. There are tons of mashup projects out there that combine data in numerous ways. For example, you may find interesting one from mashup award (http://mashupawards.com/winners/) and Yahoo!Pipes' user shared repository (http://pipes.yahoo.com/pipes/pipes.popular). Those might give you some ideas. Just a thought :-)
andresmh wrote:
We are brainstorming about possibilities for using Scratch to read and write data to the web.
Some examples of data that would be nice if Scratch could read from the web as variables or lists are:
- Sport information (scores, baseball stats, etc) from sites like espn.com
- Weather information from sites like weather.com (temperature in a city, rain, etc)
- Movies information from sites like imdb.com
- Music information (lyrics, songs, musicians) from sites like last.fm
- Social information from sites like Facebook, Twitter (updates, photos of friends, etc)
- Scratch website info like loveits on a project, friends, comments, etc
What others?
Some of examples of data that would be nice if Scratch could save on the web are:
- Results from a survey
- Scores of Scratch game
- After playing a game maybe it could update the player's Twitter/Facebook status to tell others about it.
So what kind of projects would people be able to make with this?
One example could be a project that access data from Billboard.com, and identify which song has jumped the most number of spots on the sales charts from week-to-week. And then searches YouTube for a video of each fast-rising performer and inserts the video into the Scratch project alongside the performer’s name.
Another one could be a game that uses the baseball player who has gotten the highest scores with data from ESPN.com on the latest baseball scores.
Another example could be a Scratch project that keeps tracks of the members of the Scratch community who have contributed the most comments to your projects projects. The project could show the avatars of the Scratch community members who have contributed the most comments, and continually adjusts the sizes of the avatars based on the number of comments they have contributed. Whenever
someone adds a comment to one of her Scratch projects and increases the size of the
appropriate avatar in her visualization.
What other examples can you think of?
Thanks for your ideas!
Last edited by LoveJill (2009-12-17 19:44:20)
Offline
I need these type of blocks for my ipod touch game. Here are some others:
-Posting highscores online, if a scratcher has their own site (Which I beileve many do.)
-To find the time from an atomic clock, such as www.timeanddate.com
-To get stock reports from a site like finance.yahoo.com
-To check email
-To browse and bid on ebay or amazon
-I could think of a million others if I had the time, but I need to see other topics too.
Offline
[Webbrowser frame x() to x() and y() to() with URL()]
Offline
I would love this to happen, but it might lead to the report button needing to be used more often.
Offline
1. A mmo, like epic pet wars (not really mmo but you can fight other players while they're computer controlled)
2. Recording wins/losses etc for a point system on a site.
Offline
Topic closed