Jump to content

Search the Community

Showing results for tags 'timer animation scale phaser'.

  • 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
    • Paid Promotion (Buy Banner)
  • Frameworks
    • Pixi.js
    • Phaser 3
    • Phaser 2
    • Babylon.js
    • Panda 2
    • melonJS
    • Haxe JS
    • Kiwi.js
  • General
    • General Talk
    • GameMonetize
  • Business
    • Collaborations (un-paid)
    • Jobs (Hiring and Freelance)
    • Services Offered
    • Marketplace (Sell Apps, Websites, Games)

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. Is it possible to make a timer for a game, that when it comes to the end, stops or destroys itself, gameover, etc. takes the user to a regular html page completely outside of the game. I'm thinking of a 1 page, 1 level game. starts automatically, runs for about a minute, then game is over, timer stops, and then forwards or transfers the person playing the game (or user) completely out of the game and onto a plain html page (completely outside or seperate from the game. Is that possible and what would something like that look like codewise? No scoring transfer, or anything else, just transfering the user to a different page. This would be using the latest version of Phaser. Also, I was looking for a good example of scaling a group in an animation (growing or expanding to a certain size and then shrinking back down to it's original size), and then repeating that over and over throughout the game. No random numbers at all. The closest I could find was a Phaser example having the phaser logo fade in (alpha) like below. var game = new Phaser.Game(800, 600, Phaser.AUTO, 'phaser-example', { preload: preload, create: create }); function preload() { game.load.image('space', 'assets/misc/starfield.png', 138, 15); game.load.image('logo', 'assets/sprites/phaser2.png'); } function create() { game.add.tileSprite(0, 0, 800, 600, 'space'); var sprite = game.add.sprite(game.world.centerX, game.world.centerY, 'logo'); sprite.anchor.setTo(0.5, 0.5); sprite.alpha = 0; game.add.tween(sprite).to( { alpha: 1 }, 2000, Phaser.Easing.Linear.None, true, 0, 1000, true); } So my question is, how would you make the phaser logo expand and contract over and over; say from the lower left-hand cornier of the screen instead of the center of the screen???
×
×
  • Create New...