I want to get a piece of text from a website and put in my game

MurrayZero

  • Posts: 154
I want to get a piece of text from a website and put in my game, of any site. How to do it?

Joe

  • *
  • Posts: 2478
You'll need to use server-side scripting to scrape the data and then have Stencyl request that data via the HTTP request blocks (GET).

MurrayZero

  • Posts: 154
The problem is that I want to grab a data update (bus schedule).

« Last Edit: May 22, 2013, 07:20:02 pm by MurrayZero »

Joe

  • *
  • Posts: 2478
Like I said, it can be done, but you'll need to do some work. You could also pull in the full HTML string from the GET request and parse it in Stencyl.

Some sites have public (or private) APIs that you could try to call, too, to get just the data you need, but you'll need to do some hunting.

MurrayZero

  • Posts: 154
Ok. Thank you!