Jump to content


Photo

Including jQuery into HTML5 Gamemaker


  • Please log in to reply
3 replies to this topic

#1 _235216

_235216

    GMC Member

  • New Member
  • 3 posts

Posted 24 October 2011 - 12:53 PM

Hi,

i read here: http://www.yoyogames...er/html5#unique
that it is possible to include external javascript librarys. Now i am trying to include jQuery, but i don't know how.
I can nowhere find the option in the Game maker.
Can anyone please give a short instruction? Is it even possible?

Greetings,
Jonas
  • 0

#2 Gamer_Dude64

Gamer_Dude64

    GM Html5 Programmer

  • GMC Member
  • 167 posts
  • Version:GM:Studio

Posted 31 October 2011 - 10:41 PM

look in the html5 support forum... ive seen a tutorial on including extension packages somewhere around there...

Edit: this is the tutorial here

Edited by Gamer_Dude64, 31 October 2011 - 10:42 PM.

  • 0

#3 guttalingur

guttalingur

    GMC Member

  • New Member
  • 3 posts
  • Version:GM:HTML5

Posted 14 November 2011 - 10:23 PM

look in the html5 support forum... ive seen a tutorial on including extension packages somewhere around there...

Edit: this is the tutorial here


Hold your horses!

You need to add jquery to the html page
<script type="text/javascript" src="https://ajax.googlea...n.js"></script>

Then add the javascript functions utilizing jquery to the game via the above tutorial
  • 1

#4 DamonZero

DamonZero

    GMC Member

  • GMC Member
  • 20 posts
  • Version:GM:Studio

Posted 30 April 2012 - 05:49 PM


look in the html5 support forum... ive seen a tutorial on including extension packages somewhere around there...

Edit: this is the tutorial here


Hold your horses!

You need to add jquery to the html page
<script type="text/javascript" src="https://ajax.googlea...n.js"></script>

Then add the javascript functions utilizing jquery to the game via the above tutorial


Has anyone gotten this to work? I tried adding jquery several ways (different URLs as I found at Google, also from a local js file). It seems my extension script does not recognize jquery commands... I guess jquery fails to load.
I tried replacing the Index.htm with a custom one (that referenced the jquery file) using the game options menu HTML tab, still no success.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users