pterodactyl

Members
  • Content Count

    4
  • Joined

  • Last visited

About pterodactyl

  • Rank
    Newbie

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

  1. Also documentation doesn't have examples https://photonstorm.github.io/phaser3-docs/Phaser.Input.Keyboard.KeyboardPlugin.html
  2. Ok, it worked. Is there a better way to implement basic controls? I can't find tutorial about this for Phraser 3. Everywhere arrow keys.
  3. Uncaught ReferenceError: KeyCodes is not defined Sorry I am new.
  4. Hello Im new to Phaser. I'd like to replace arrow keys with wasd keys This is my code: this.cursors = this.input.keyboard.createCursorKeys(); if (this.cursors.left.isDown) { this.ship.setAngularVelocity(-150); } else if (this.cursors.right.isDown) { this.ship.setAngularVelocity(150); } else { this.ship.setAngularVelocity(0); } if (this.cursors.up.isDown) { this.physics.velocityFromRotation(this.ship.rotation + 1.5, 100, this.ship.body.acceleration); } else { this.ship.setAcceleration(0); }