Search the Community

Showing results for tags 'change mummy direction'.



More search options

  • 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
  • Frameworks
    • Phaser 3
    • Phaser 2
    • Pixi.js
    • Babylon.js
    • Panda 2
    • melonJS
  • General
    • General Talk
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered

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. hugo

    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(); }}