• Content Count

  • Joined

  • Last visited

  1. Thank you Tom, feudalwars, I learned something from both your posts. I've used Tom's approach as it was the easiest to update my code Have a great day!
  2. Hi, Is there a way to tween a rotation between two angles (say -5 to 5 degrees)? I can tween to a single angle and then yoyo; but I'm not sure how to get it to tween between two angles so it rocks back and forth. If possible, I'd prefer to have a single tween rather than two; however if that's the only way, then I'd still be interested to know how to get that to work so that it loops.
  3. Thank you jmp909, it was the easing. The sprite was off screen to start, so I didn't see the movement. I've changed the easing to Back Out and it works fine now
  4. Hi, the tween moves the sprite. The sound needs to play at the start of this movement. I'm not sure how to set the delay to zero. tween1: function() { this.tweenMini1 = this.add.tween(this.spriteMini).to({ y: this.world.centerY}, 2000, Phaser.Easing.Back.In, true, 0); this.tweenMini1.onStart.add(this.playSwoosh, this); }, playSwoosh: function() { this.swoosh.play(); this.swoosh.volume = 0.3; },
  5. Hi, I'm trying to sync audio to the start of a tween. this.myTween = this.add.tween(...) this.myTween.onStart.add(this.playSound, this) Instead, the audio plays first and then a few moments later the tween starts. I read the onStart should wait until the tween starts, but this doesn't seem to be happening. Please help!
  6. Hi, I'm attempting to load an image from a url and it doesn't work, please help: For example: this.load.image('test', 'http://phaser.io/images/img.png'); I'd like to load images from other websites during runtime. The purpose is to display content specific to the game player and accessed from the website they are logged into, e.g. their pictures in facebook, google+, etc.. Thank you very much for responses! Jung