Jump to content

Search the Community

Showing results for tags 'paser group element'.

  • 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. Hi! I have a problem with add my elements to gruop. I want to add it because i must cinfigure what will be do after collide element with player. This is my function where after click on screen can add elements from equipment to the game screen: createeq: function(){ this.eqgroup = this.game.add.group(); if (typ1==0){ this.cup=this.add.sprite(this.input.activePointer.x + this.camera.x,this.input.activePointer.y + this.camera.y, przedmiotwybrany); this.cup; this.eqgroup.add(this.cup); this.eqgroup.enableBody = true; } else{} },I want to create group to make collide with player like that: update: function() { //collision this.game.physics.arcade.overlap(this.player, this.eqgroup, this.eqitemadd, null, this); ...And function after collide: eqitemadd: function(){ console.log('add'); },And there is a problem, when my player collide with element dont do anything. Anyone can help? You can see my project on: http://lifetime.cba.pl Login : test Pw: test And them click "graj". Thanks in advance!
×
×
  • Create New...