Jump to content

Search the Community

Showing results for tags 'physics hit collide'.

  • 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. Let's say there are two sprites and one of them is draggable. How to implement "impact" when the draggable sprite hits the second one, such that the second sprites starts moving with the speed of the draggable one. Here is what I tried: create() { this.cat = this.game.add.sprite(...); this.cat.body.bounce.setTo(0.5, 0.5); this.cat.input.enableDrag(false, true, false, 255); this.dog = this.game.add.sprite(....); this.dog.body.bounce.setTo(0.5, 0.5);}update() { game.physics.collide(this.cat, this.dog);}It seems this code does nothing. Could you help please?
×
×
  • Create New...