Jump to content

Phaser 1.1.3 BitmapData Wobble example not working for me.


Recommended Posts

This example is not working for me.


Uncaught NotSupportedError: The implementation did not support the requested type of object or operation.




Is this a problem for anyone else?


I had the same problem. I've opened an issue on the Github repo here: https://github.com/photonstorm/phaser/issues/235.

Link to comment
Share on other sites

the problem is at line 19 in the example code:

bmd = game.add.bitmapData('ball', 32, 64);

which calls the GameObjectFactor method

bitmapData: function (width, height)

which isn't expecting the 'name' parameter. name is therefore passed as width, and the browser javascript engine barfs

(I noted this in the issue)

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...