Jump to content

Search the Community

Showing results for tags 'title screen timer delay'.

  • 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 again, now I'm messing around with a title screen system. Unfortunately, it seems to cycle too fast when I press the down or up buttons so I tried implementing the timer object in it and I'm trying to delay the game slightly. Any suggestions? Here's the code for my cursor class (except for the last function for some reason): else if(game.input.keyboard.isDown(Phaser.Keyboard.UP)){ var timer = new Phaser.Timer(game, true); if(l > 0) l--; else l = coords.length - 1; cursor.destroy(); controls.pop(); createCursor(l); timer.start(500); } // Move down else if(game.input.keyboard.isDown(Phaser.Keyboard.DOWN)){ var timer = new Phaser.Timer(game, true); if(l < coords.length - 1) l++; else l = 0; cursor.destroy(); controls.pop(); createCursor(l); timer.start(500); } }
×
×
  • Create New...