Jump to content

Search the Community

Showing results for tags 'idle animation 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. So I am just 1 day into phaser and javascript and I hit my first bump. I followed this tutorial for my own little project. Trying to learn the pragmatic way. http://blog.lessmilk.com/how-to-make-flappy-bird-in-html5-1/ I am having problems showing the idle animation, the game runs in this state. The sprite is showing but has no animation. // Initialize Phaser, and creates a 400x490px gamevar game = new Phaser.Game(480, 800, Phaser.AUTO, 'game_div'); // Creates a new 'main' state that will contain the gamevar main_state = { preload: function() { // Function called first to load all the assets this.game.stage.backgroundColor = '#4f90cd'; this.game.load.spritesheet('doubleflappy', 'assets/characters.png', 54, 42); }, create: function() { // Fuction called after 'preload' to setup the game this.flappytest = this.game.add.sprite(100, 350, 'flappytest'); this.animations.add('flapping', [0, 1, 2], 3, true); this.animations.start('flapping'); //I think something is wrong with this line }, update: function() { // Function called 60 times per second },}; // Add and start the 'main' state to start the gamegame.state.add('main', main_state); game.state.start('main'); Also, how do you properly display code on this forum?
×
×
  • Create New...