Jump to content

Search the Community

Showing results for tags 'error in the code'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. Guys, please help to deal with the movement of the model (car). I wrote some code, but it is not working. Point me in the right direction. var Control = (function () { function Control() { this.c = 0; } Control.prototype.keyUp = function (key) { switch (key) { case 39: Control.moveLeft = false; break; case 38: Control.moveForward = false; break; case 37: Control.moveRight = false; break; case 40: Control.moveBackward = false; break; } }; Control.prototype.keyDown = function (key) { switch (key) { case 39: Control.moveLeft = true; break; case 38: Control.moveForward = true; break; case 37: Control.moveRight = true; break; case 40: Control.moveBackward = true; break; case 68: if (this.c % 2 == 0) { Control.driftMode = true; } else { Control.driftMode = false; } this.c++; break; } }; Control.moveForward = false; Control.moveBackward = false; Control.moveLeft = false; Control.moveRight = false; Control.driftMode = false; return Control;})();
×
×
  • Create New...