Jump to content

Search the Community

Showing results for tags 'exist'.

  • 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. helo. pls someone correct me. my hero will throw coins to homeless people. and i wanna add a time limit for the coin. the problem is i dont know how to target the event's object. sry for my eng and ty for any advice function update() { if (cursors.down.isDown && timerFire == 0){ console.log('pina'); timerFire = 20; var penz = bullets.getFirstExists(false); penz.timeleft = 100; if (facing === 'right') { penz.reset(player.x +10, player.y ); penz.body.velocity.y=-200; penz.body.velocity.x=200; } else { penz.reset(player.x -10, player.y); penz.body.velocity.y=-200; penz.body.velocity.x=-200; } } if (timerFire != 0){ timerFire--; } bullets.callAllExists(csokkentes, true); function csokkentes(e:target){ if (e.timeLeft != 0) { e.timeLeft--; } else { e.exists = false; } }
×
×
  • Create New...