Jump to content


Photo

How to get stuff off the server and onto the game?


  • Please log in to reply
3 replies to this topic

#1 Psalms23

Psalms23

    GMC Member

  • New Member
  • 163 posts

Posted 06 October 2011 - 09:35 AM

If I put a video on my server, is there anyway I could embed it into the game at a certain spot in the room? Or even just make it play straight over the game?

What about using images from my server as sprites? Or a text file for code? Like:

sprite = www.mysite.com/sprites/sprite1.png

or, in the execute code function

GetCode(mysite.com/code.txt)

Would make for easy updates

Edited by Psalms23, 06 October 2011 - 09:36 AM.

  • 0

#2 PsichiX

PsichiX

    GMC Member

  • GMC Member
  • 358 posts

Posted 06 October 2011 - 09:57 AM

Ether.dll
  • 0

#3 Nocturne

Nocturne

    Nocturne Games

  • Administrators
  • 16839 posts
  • Version:GM:Studio

Posted 06 October 2011 - 10:01 AM

PsychiX, please make sure you know what the topic is about before posting... GM:HTML5 cannot use dll, but rather Javascript extensions and such.
  • 0

#4 TGMG

TGMG

    G-java creator

  • New Member
  • 706 posts
  • Version:GM8

Posted 06 October 2011 - 10:06 AM

Yes you can put html5 video in your game canvas:
http://html5doctor.c...o-canvas-magic/

Yes you can use sprites from your server as sprites, just use sprite_add/background_add with the url.

There is no execute_code function, and apparently you are not allowed to release in debug mode so you can't implement it yourself (the functions change name every time a game is exported as stand alone).
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users