Jump to content

Help is needed in Audio Game..


Recommended Posts

The error is commonly seen when you don't have matching parentheses - look at these two sections from your code and see if you can spot what's different ;)

  if (game.input.keyboard.isDown(Phaser.Keyboard.P) {  if (game.input.keyboard.isDown(Phaser.Keyboard.E)) {

Using a good IDE will help prevent these simple typos from happening, as well as maintaining good standards when typing. I tend to open and then close braces, brackets and parentheses straight away, then go back and type the code inside them. Doing it this way makes it easier to keep track of things.

Link to comment
Share on other sites


  • Recently Browsing   0 members

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