Complete newb cant run tutorial script
  • I'm trying to run the spaceship script from jsfiddle, however, it said that i cannot call startgame of undefined, i found out that i had to use the onload event , because it was selected on jsfiddle, i wrapped the script on it and the sprites dont move, what am i doing wrong, what do i need to edit on the jsfiddle to run it outside http://jsfiddle.net/onaluf/tthGm/light/
  • Hi delox,

    You don't need the onload event because the part of the script that depend on the document being fully loaded is wrapped in $(function(){...}).

    Here are a few things you could check:
    • Do you have a div in your HTML document with the id "playground" ?
    • Do you have a line in your code that does $("#playground").playground(...)


    Another way for you to run the demo locally is to download the zipped version at http://gamequeryjs.com/demos/3/demo3.zip

    Then you can simply replace the content of the tutorial.js file with the content of the Javascript frame of the jsFiddle.

    Hopes it helps.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!