Jump to content

finding sprites in chrome console.


queequeg
 Share

Recommended Posts

I've been having difficulty figuring out how to interact with my sprites from the chrome dev console.  Is there a standard way to do that?  Lets say that you add a sprite 

 

   initGraphics: function () {
        this.shipSprite = game.add.sprite(shipProperties.startX, shipProperties.startY, graphicAssets.ship.name);
        this.shipSprite.angle = -90;
        this.shipSprite.anchor.set(0.5, 0.5); 
    },

I can see my sprite and make it move around but when I bring up chrome console I can't seem to figure out how to directly access it's x and y properties.

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.

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

Loading...
 Share

  • Recently Browsing   0 members

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