Jump to content

Search the Community

Showing results for tags 'image spritesheet'.

  • 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. Hello, I'm using spritesheets in my project. Unfortunately, I don't know the frame dimensions at the beginning, but I can calculate them given the image dimensions. I need to a possibility to either get the image dimensions before i create the spritesheet or a way to change them after creating the spritesheet. What I'm currently doing looks like this: game.load.spritesheet("001", "assets/spritesheets/001.png", 19, 17, 16);I tried serveral ways to get the image dimensions like: var image = game.cache.getImage("001");This only returns a string, like <img name="001" src="assets/spritesheets/001.png"> and I can't figure out how to get dimensions by using the string. Even if I could, I don't know how to change the spritesheet frame size and frame count afterwards. Thanks in advance for help.
×
×
  • Create New...