Hi Guys,
I'm pretty new to Phaser Game development. I'm trying to make a cool 2D platformer. I've created a very basic first level, enough to let me start working on the player controls. One thing I want to do is add a double jump feature to my player. I'm trying to find something like a key.up function to use to stop it so my player doesn't just hold down the spacebar to jump really high. Here is my code behind jumps below.
if (userKeys[2].onDown && player.jumpCount < 2)
{
player.body.velocity.y = -350*upForce;
player.jumpCount++;
console.log(player.jumpCount);
}
I think what I need is the processKeyUp function, in the keyboard.js. I'm not sure how I call it. Any ideas?
Also right now I am using Cloud9 as my development environment. I've heard good things about mighty editor. Which one do you guys prefer?