Jump to content

Search the Community

Showing results for tags 'Sprite invisible'.

  • 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. Could not find a similar post on this, I just want to push some sprites into a group. If I do so, they are not visible anymore. When I do not set the group they are still visible. Here is my code. .... game.state.start('Title'); }}var stateTitle = { preload: function(){ this.load.image( 'uiPlayBTNouter', 'assets/@1x/ui_play-btn_outer.png' ); this.load.image( 'uiPlayBTNinner', 'assets/@1x/ui_play-btn_inner.png' ); this.load.image( 'uiPlayBTNdir', 'assets/@1x/ui_play-btn_dir.png' ); this.load.audio( 'BGMtitlescreen', 'assets/audio/bgm_titlescreen.mp3' ); }, create: function(){ console.log( "game started" ); var bg = game.stage.backgroundColor = '#040f1b'; this.BGMtitlescreen = game.add.audio( 'BGMtitlescreen' ); this.BGMtitlescreen.play( '', 0, 1, true); this.uiPlayBTN = game.add.group(); this.uiPlayBTNinner = game.add.sprite( game.width / 2, game.height -200 * pixelratio, 'uiPlayBTNinner' ); this.uiPlayBTNouter = game.add.sprite( game.width / 2, game.height -200 * pixelratio, 'uiPlayBTNouter' ); this.uiPlayBTNdir = game.add.sprite( game.width / 2, game.height -200 * pixelratio, 'uiPlayBTNdir' ); this.uiPlayBTN.add(this.uiPlayBTNinner); this.uiPlayBTN.add(this.uiPlayBTNouter); this.uiPlayBTN.add(this.uiPlayBTNdir); this.uiPlayBTN.setAll('anchor',0.5); this.uiPlayBTN.x = game.width / 2; this.uiPlayBTN.y = game.height -200; }, update: function(){ }}...
×
×
  • Create New...