erich

Members
  • Content count

    67
  • Joined

  • Last visited

1 Follower

About erich

  • Rank
    Advanced Member

Contact Methods

  • Twitter
    webdesigneire

Profile Information

  • Gender
  1. very nice game - well done
  2. very clever idea - well done
  3. was looking for the same - any good online examples ?
  4. have a look at: http://phaser.io/examples/v2/basics/01-load-an-image should be : create: function() { game.add.sprite( 0, 0, 'flag' ); },
  5. well done - thats really good ! Eric
  6. cheers @scheffgames !
  7. Hi Quick question - is it possible to tint a spritesheet, I know you can use eg sprite.tint = 0xff00ff; but tint doesn't seem to work on an animation, is it possible or am I just better just photoshopping a new spritesheet? Thanks in advance Eric
  8. I find emitters very handy, this is a basic script snippet I modify as I see fit : var emitter = this.game.add.emitter(this.player.x, this.player.y, 15); emitter.makeParticles('star'); emitter.minParticleSpeed.setTo(-300, -300); emitter.maxParticleSpeed.setTo(300, 300); emitter.gravity = 0; emitter.start(true, 750, null, 15); this emitter is from my player sprite with a star png, you could easily modify this for your own needs hope it helps you Eric
  9. works fine this end, player is walking on the ground and input is working fine - did you clear the cache and try again ?
  10. thats really good ! well done Eric
  11. you could use : this.spaceKey = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR); // spacebar this.actionButton = this.add.button(this.game.width - 200, this.game.height - 200, 'actionButton'); // show a jump buttn on screen this.actionButton.events.onInputDown.add(function(){ this.player.customParams.mustJump = true; }, this); this.actionButton.events.onInputUp.add(function(){ this.player.customParams.mustJump = false; }, this); and in the update function : if((this.spaceKey.isDown || this.player.customParams.mustJump) && this.player.body.touching.down) { //put your jump info here } Eric
  12. Hi Everyone A new game I created for a bit of fun with Phaser - see how long you can survive ! Use the arrow keys to move and space bar to reverse your jump, just dodge the saw blades for as long as you can. http://html5gamer.mobi/phaser2/gravity/ It will be up on the play store shortly https://play.google.com/store/apps/dev?id=6610143282478185428 Let me know what you think Eric
  13. @jopcode if you are using intel xdk, you need to show the .ogg first (its a a bug in xdk), if its the mp3 fierst it won't play the audio in android for some reason eg: this.load.audio('music', ['assets/audio/music.ogg', 'assets/audio/music.mp3']); Eric
  14. your game is INCREDIBLE !! well done Eric
  15. Thanks @1pixelarmy for the feedback, I will have a look at the navigation area to see if I can make it easier for the end user They are all native, once made I wrap them in the intelXDK for the App store for publishing I had a few subs so far, early days Greatly appreciated Eric