Jump to content

Search the Community

Showing results for tags 'wind physics gravity'.

  • 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. Hey there - my first post. I have a sprite which bounces up onTap as below: tap = function() { var tween; bug.body.velocity.y = -100; tween = game.add.tween(bug.body.velocity).to({ y: -100 }, 25, Phaser.Easing.Bounce.In, true); tween.onComplete.add(function() { return bug.body.gravity.y = GRAVITY; }); bugSnd.play();};game.physics.gravity.y = 100; What I need is a global physics like a wind which would push the sprite in a direction and onTap would move the sprite up and against the wind. Hoping I've described this right. Code snippet much appreciated. Thanks in advance for your help. (I'm new to Phaser but I've been immersed in everything I can learn during this past week and lovin' it.)
×
×
  • Create New...