1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Load from url

Discussion in 'Suggestions & Ideas' started by GoldenGuy, Mar 27, 2017.

Mods: Rainbows
  1. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    Is it possibe to implement sprite, or some code loading from website?
     
    Fuzzle and joshua12131415 like this.
  2. Furai

    Furai THD Team THD Team Administrator

    Messages:
    3,124
    And why on Earth would you need that?
     
  3. Fuzzle

    Fuzzle Grand Grumbler

    Messages:
    297
    While there's no HTTP implementation it could be done with a TCPR connection (for example, KScript2 could be used). Sprites could be initialized via the new ImageData construct (next update?).
     
    Last edited: Mar 27, 2017
  4. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    KScript2 is for kag beta?
     
  5. Fuzzle

    Fuzzle Grand Grumbler

    Messages:
    297
    Yes - it can be found here.
     
  6. GoldenGuy

    GoldenGuy Haxor Tester

    Messages:
    105
    Oh... its for linux... ::(:
     
  7. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Hosting servers on windows isn't officially supported ;)

    I was looking at a simple TCPR<->HTTP bridge with node at some point though as an example of using TCPR to extend the engine beyond what you can do with just scripts, but I've left it for now as I've got more on my plate. In terms of loading a texture from the net, there'd be a bit more involved there but it'd be possible next update or whenever the script texture stuff makes it into mainline.
     
    jonipro and GoldenGuy like this.
Mods: Rainbows