Jump to content

Search the Community

Showing results for tags 'phaser click help image state'.

  • 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 all! I am currently working on modifying source-code for a tutorial by this fine fellow. I am working to make the example game he has created into an idle clicking game… like Cookie Clicker etc. I took the phaser example number 2 (Clicking an image) and attempted to re-write it accounting for my game using states…I have not been successful Code: Candy.Game = function(game){// define needed variables for Candy.Game};Candy.Game.prototype = {create: function(){this.stage.backgroundColor = '#fff';this.image1 = this.add.image((Candy.GAME_WIDTH)/2, (Candy.GAME_HEIGHT)/2, 'monster-cover');this.image1.anchor.set(0.5);this.image1.inputEnabled = true;this.text = this.add.text(250, 16, '', { fill: '#B4D9E7' });//this.image1.events.onInputDown.add(listener, this); //This line is where the game stops working},listener: function(){counter++;text.text = "You clicked " + counter + " times!";},update: function(){},};Any help / tips are greatly appreciated Thanks in advance! - TimTation
×
×
  • Create New...