Search the Community

Showing results for tags 'hit'.

More search options

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Platform
    • Coding and Game Design
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

Find results in...

Find results that contain...

Date Created

  • Start


Last Updated

  • Start


Filter by number of...


  • Start



Website URL





Found 6 results

  1. Hi guys, I'm a new student and I knew Phaser since 5 days and it's fantastic. So I'm a beginner. I'm trying to create one simple platform game, I have one issue but I don't know how to solve it. I'll appreciate your help. I need that when the animation hit the wall he changes the direction, right or left and keep running. Here's the part of the code that I think is necessary for analyses: // Collide the player with the walls var hitWalls = game.physics.arcade.collide(player, walls); game.physics.arcade.collide(stars, walls) //My animation starts running to right and I want it player.body.velocity.x = 200;'right',15,true); if (hitWalls) ???? { //Here I tried: player.body.velocity.x = -150; but the animation is crazy now } Thanks and have a good day!
  2. I want the User to be able to connect two Objects with a Line. Therefore I need the hit target on pointerup. I display the virtual line which changes position with moving the cursor (the end of the line is always below the cursor). Thus when the user clicks the hit target is always the virtual line object. Is it possible to get all hit targets (also the ones below) and not just the first one? Or something like a blacklist/whitelist to ignore some interactive elements on the hit test or only test specific objects?
  3. Juan

    Hit Moles

    Hello, everyone! This is Hit Moles, my first game. This game is about hitting as many moles as you can in the limited time (1 minute). There are two more characters which are a cactus and a rabbit. When you hit the mole, you score 5 points, when you hit the cactus, it subtracts 5 secs in the countdown timer, But hitting the rabbit will add 5 secs. Preview Demo Feedbacks would be pretty appreciated.
  4. Hello again. New problems arise everyday! I have a character who has an animation called "hit". Here's the strip of frames. So in my code I have this little something that makes the character "hit" when the btnGolpe is down: btnGolpe = game.input.keyboard.addKey(Phaser.Keyboard.M); in function update (): else if (btnGolpe.isDown) {'golpe'); } The problems? 1) The animation keeps looping if btnGolpe is down. It should only play once per button pressing. 2) I need that the character actually "hits" it's opponent with his fist. Is there a way to do this? The collision should be between the fist and the opponent. Bare in mind that the fist is shown in one frame of the whole animation, so it show only register the collision in that frame, in that position (the fist, in this case). I'm really looking forward for your advise on these things. Thanks in advance, people!
  5. like do to when you hit the enemy, this is around for a while invincible? invincible maybe 2 seconds (blinking, for example), and then he can hit again. I have to use some kind of timmer, the ...?
  6. Hi!I have found this in forum: I use version 1.1.5. There are any example of how to create an effect of impact sprite?