Le Sparte

Members
  • Content Count

    6
  • Joined

  • Last visited

About Le Sparte

  • Rank
    Newbie

Recent Profile Visitors

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

  1. Thank you very much for your detailed example samid737! And thank you samme for the line to stop shaking! I'm unlocked now!
  2. Hi there, Hi have a sprite moving on the x axis at a given speed. When the user press on the space bar, I want (1) the sprite to stop on y axis, (2) make a move to the right, (3) go back at his initial position, and (4) continue his way on y. I've tried with the following code but the sprite stops while going back to his position and keeps shaking. Is there an easier way to do what I'm trying to achieve? If not, how could I debug this code? Many thanks! PS: my sprite will have to consider collisions. if (this.space.isDown){ let position_man = this.man.body.y; let speed_man = this.man.body.velocity.y; this.man.body.velocity.y = 0; let tween = game.add.tween(this.man); tween.to({x:200},100,"Quart.easeOut"); tween.start(); tween.onComplete.addOnce(retour,this); function retour(){ let tween2 = game.add.tween(this.man); tween2.to({x:100},100,"Quart.easeOut"); tween2.start(); } this.man.body.velocity.y = speed_man;
  3. Yes, maybe. Let's see if I can get an answer from a Phaser developper. If I don't, I'll add an issue to the Phaser Github (I should do it anyway).
  4. No, it doesn't. I've tried with my own codes but also with exemples on the Phaser website. No problem with a regular keyboard, but I get no answer at all with the iPad Pro Keyboard. Il makes no sense to me (my Keyboard is okay btw, I'm writing this message with it).
  5. Hi there, Is there a way to get the Apple Pro Keyboard recognized by Phaser? Is there a specific code or library (like Hammer.js) to add? Thanks for your help!