Jump to content

Search the Community

Showing results for tags 'dash motion'.

  • Search By Tags

    Type tags separated by commas.
  • Search By Author

Content Type


Forums

  • HTML5 Game Coding
    • News
    • Game Showcase
    • Facebook Instant Games
    • Web Gaming Standards
    • Coding and Game Design
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

Find results in...

Find results that contain...


Date Created

  • Start

    End


Last Updated

  • Start

    End


Filter by number of...

Joined

  • Start

    End


Group


Website URL


Twitter


Skype


Location


Interests

Found 1 result

  1. sur0x

    Character Dash

    Hi , First of all, I'm new to programming and creating games, so I'm trying to make my character dash some frames in X , they way I implemented it's kinda of teleporting the player. Could anyone help me to figure out how to do it smoothly? I'm planning to add a custom dash animation to the sprite, so far I'm using the default phaser character. Here's my piece of code: function dashLeft() { if (player.body.touching.down && player.body.facing == 2) { dashGauge = dashGauge-1 player.body.velocity.x += 1000; console.log(dashGauge) dashOut(); } } function dashRight() { if (player.body.touching.down && player.body.facing == 1) { dashGauge = dashGauge-1 player.body.velocity.x += -1000; console.log(dashGauge) dashOut(); } }I think - player.body.velocity.x += -1000; doesn't seem the best option for a smoothly movement Thank's in advance.
×
×
  • Create New...