Jump to content

Strategy game data modifiers - Please help


Thunderfist
 Share

Recommended Posts

2 hours ago, Thunderfist said:

OK. I just tried changing console.log(tiles[0]) to console.log(tiles). 'Array[6]' showed up in the console. Is that supposed to happen?

If you are in chrome that is correct. There should be an expand/collapse icon to the left you can press to show the individual ones. Essentially it is telling you that tiles is an array of 6 indexes items.

Thunderfist, what is it you are wanting to accomplish with the console stuff? to inspect the object? Below are some videos I recommend you watching for learning more about the Chrome Development Tools. They are a very POWERFUL set of tools that ALL web developers should know. I also recommend using the Phaser Inspector plugin by netcell for debugging phaser related stuff.

 

 

Edited by phreaknation
Added link for the Phaser Inspector by netcell
Link to comment
Share on other sites

17 hours ago, phreaknation said:

Thunderfist, what is it you are wanting to accomplish with the console stuff?

I'm using the console to test if certain parts of my code works. I need something to show that the code works, after all. other than repeatedly moving a unit between two tiles that damage that unit.

Link to comment
Share on other sites

 Share

  • Recently Browsing   0 members

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