# hugo

Members

13

• Rank
Member

2. ## collision problem

i'm completely lost

4. ## collision problem

if i do this the clouds don't appear...
5. ## collision problem

if i remove the tween my clouds stop movingand if i modify the tween the result is the same...
6. ## collision problem

thanks marvsterthat doesn't work...

8. ## mummy exmple

doesn't worki want the mummies to appear in the right side and disappear on the left side
9. ## mummy exmple

how can i change the mummy direction on the mummy example http://examples.phaser.io/_site/view_full.html?d=sprites&f=add+several+sprites.js&t=add%20several%20sprites mummy walks right to left here's the code function create() { releaseMummy();}function releaseMummy() { var mummy = game.add.sprite(-(Math.random() * 800), game.world.randomY, 'mummy'); mummy.scale.setTo(2, 2); // If you prefer to work in degrees rather than radians then you can use Phaser.Sprite.angle // otherwise use Phaser.Sprite.rotation mummy.angle = game.rnd.angle(); mummy.animations.add('walk'); mummy.animations.play('walk', 20, true); game.add.tween(mummy).to({ x: game.width + (1600 + mummy.x) }, 20000, Phaser.Easing.Linear.None, true); total++; timer = game.time.now + 100;}function update() { if (total < 200 && game.time.now > timer) { releaseMummy(); }}
10. ## Phaser event touch in mobile

in the flappy bird tutorial replace the // var space_key = this.game.input.keyboard.addKey(Phaser.Keyboard.SPACEBAR); // space_key.onDown.add(this.jump, this); for this.input.onDown.add(this.jump, this); in the browser work with the mouseand i think it work with touch on mobilebut i'm not sure i never tested let me know if it works
11. ## Recommended file structure?

i'm a little confused too on how to structure Phaser what's the difference between function create () and create: function ()
12. ## how to animate a group of clouds

thanks richdo you know an example of this?