Jump to content

Search the Community

Showing results for tags 'terrible terrible problem'.

  • 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. Hello there. Im new to phaser so im trying to learn it, but in the process i have came across a few troubles with groups and forEach method. Here is what i have: starGroup.forEach(function(eachStar) { if (gameBegun==true && planeSprite.body.hitTest(eachStar.x+8, eachStar.y+30) && eachStar.frame<=30) { eachStar.animations.play('taken', 24, false, true); } if(eachStar.frame>50)// this line here doesnt work for some reason { alert('easf'); }});So if you notice that if(eachStar.frame>50), it doesnt work, for some strange reason it doesnt work. It works if i do frame<50. So its really odd. < works > doesnt work. I also have a problem if i say eachStar.destroy(), i also seted it to true like so: eachStar.destroy(true) but it gives me the following error: "Type Error: eachStar is undefined." eachStar.kill() works but i want to completely remove eachStar under certain circumstances. So whats causing such problems? Thanks.
×
×
  • Create New...