phreaknation Posted January 18, 2017 Share Posted January 18, 2017 (edited) 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 January 18, 2017 by phreaknation Added link for the Phaser Inspector by netcell Link to comment Share on other sites More sharing options...
Thunderfist Posted January 19, 2017 Author Share Posted January 19, 2017 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 More sharing options...
phreaknation Posted January 19, 2017 Share Posted January 19, 2017 then watch them videos. That should help you out a lot Link to comment Share on other sites More sharing options...
Thunderfist Posted January 19, 2017 Author Share Posted January 19, 2017 I can't do that. The internet is going to be shut down in a few minutes. Link to comment Share on other sites More sharing options...
phreaknation Posted January 19, 2017 Share Posted January 19, 2017 when you get the chance that is Link to comment Share on other sites More sharing options...
Recommended Posts