function creategalleryButton(){
            var galleryButton= new utilities.genericButton({scene:self,key:'buttonFrame',x:400,y:580,text:"Go to gallery",displayWidth: 300, displayHeight:36});
            galleryButton.on('pointerdown', function(pointer, localX, localY, event){
                self.scene.start('scene_Gallery');
            },self );
            galleryButton.setDepth(5);
            galleryButton.currentText.setDepth(6);
        }
//Creates a button to go to the gallery scene
Creates a button to go to the gallery scene
Creates a button to go to the gallery scene
function creategalleryButton(){
            var galleryButton= new utilities.genericButton({scene:self,key:'buttonFrame',x:400,y:580,text:"Go to gallery",displayWidth: 300, displayHeight:36});
            galleryButton.on('pointerdown', function(pointer, localX, localY, event){
                self.scene.start('scene_Gallery');
            },self );
            galleryButton.setDepth(5);
            galleryButton.currentText.setDepth(6);
        }
function creategalleryButton ( ) { var galleryButton = new utilities . genericButton ( { scene : self , key : 'buttonFrame' , x : 400 , y : 580 , text : "Go to gallery" , displayWidth : 300 , displayHeight : 36 } ) ; galleryButton . on ( 'pointerdown' , function ( pointer , localX , localY , event ) { self . scene . start ( 'scene_Gallery' ) ; } , self ) ; galleryButton . setDepth ( 5 ) ; galleryButton . currentText . setDepth ( 6 ) ; }
Creates a button to go to the gallery scene
Creates a button to go to the gallery scene