Jump to content

Glitchy Phaser examples


Recommended Posts

Hi everyone!

I am quite new to Phaser and javascript and I have been learning it mainly with the phaser.io examples and library.

During my explorations I noticed that some examples do not work when downloaded to my computer (or even my friends' as well), but it does on the phaser page.
As an example: http://phaser.io/examples/v2/ninja-physics/ninja-platforms - when downloaded to my computer the characters are constantly jumping and going everywhere without any pressed key (video of the glitch).
Also, the http://phaser.io/examples/v2/arcade-physics/custom-sprite-vs-group#gv when opened it just show an empty canvas. When I ran the web console it states 2 errors: the 'game.rnd.between is not a function' and 'sprite is undefined'.
These examples were downloaded straight from the page.

Am I doing something wrong when testing these examples?
I usually create a folder with the assets folder, index.hmtl file, phaser.min.js and sourceexample.js. The files are linked on the html file.

Am I missing something or is it just the case these codes are faulty and incorrect from the source?

I am running out of ideas here and any help would be much appreciated. :)

Link to comment
Share on other sites

On 10/9/2018 at 11:51 PM, rich said:

Which version of Phaser have you put with them? It says in the console when run.

I just checked, it was a really old version (2.0.1). I just updates to the last phaser 2 version and the custom-sprite-vs-group example worked. 🙌 Newbie mistake. 😅

I tested this new version with the ninja-platforms example but the glitch persists. Any ideas why this glitch keeps happening? 🤔

Thank you!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...