Jump to content

Search the Community

Showing results for tags 'sprite key'.

  • 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 loaded sprite in loop and hidden all of them. I want to show them one by one on click actions How can i get each sprite by key id and show one at time for (var i = 1; i < 4; i++){ var personSelection = this.add.sprite(game.world.centerX, game.world.centerY, 'bw'+i); personSelection.anchor.set(0.5) personSelection.inputEnabled = true; personSelection.input.useHandCursor = true; personSelection.events.onInputDown.add(this.startScene, this); personSelection.visible = false; console.log(personSelection) }
×
×
  • Create New...