Jump to content

Search the Community

Showing results for tags 'Extending Sprite animation'.

  • 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. I using Extending Sprite for my game FishSprite.js: FishSprite = function (game, x,y,key) { Phaser.Sprite.call(this, game, x, y, key); this.anchor.setTo(0.5, 0.5); game.add.existing(this);}; FishSprite.prototype = Object.create(Phaser.Sprite.prototype);FishSprite.prototype.constructor = FishSprite; FishSprite.prototype.update = function() {}; using in Game.js this.s_fish1 = new FishSprite(this,50,400,'fish1'); // use this will errorthis.s_fish1.animations.add('s_fish1boi', [0,1,2,3], 10, true); // error herethis.s_fish1.animations.play('s_fish1boi'); Pls help me!my src in attach files Fish.zip
×
×
  • Create New...