• Content Count

  • Joined

  • Last visited

About Pillan

  • Rank

Profile Information

  • Gender
  • Interests
    Programming, Breakdancing, Drumming
  1. I want my character to fall as soon as it touches the ceiling of something. However, my character continues to jump until it reaches its max jump height before it falls. Any suggestions?
  2. I'm trying to debug my player.body in the console.log I have console.log(player.body) in the create function. How do I update the console.log(player.body) ?
  3. I'm just starting out in phaser 3 as well, its pretty confusing haha. I believe you need to make a variable for the dog. The code should look like this: function preload() { this.load.image('dog', 'assets/dog.png'); } function create() { var dog = this.add.image('dog'); //You could also create "var dog" prior to this, and all you have to do here is: dog = this.add.image('dog'); }
  4. I want my player sprite to accelerate until it reaches a maximum velocity when right or left key pressed If no keys are pressed, I want my player sprite to decelerate until it reaches a velocity of 0 I've attempted doing this myself but its not working the way I want it to. I'm mostly having troubling with deceleration.
  5. I'm completely new to JavaScript and I'm trying to create a Side-Scroller game with Phaser 3. Are there any good tutorials for this kind of project? Thanks for your time! Pillan