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

 Share

  • Recently Browsing   0 members

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