Jump to content

Search the Community

Showing results for tags 'tileoffset'.

  • 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 there! I've got a question regarding the "Drawing Offset" that the Tiled mapeditor has. In short, does Phaser supports it? The map that I am using has several layers. The general size of a tile is 32x32px, but some sprites are twice as big. Even though it looks good in "Tiled" I noticed that the positions of my "trees" below had moved when I run the game. I've been trying to track the Tiled property "tileoffset" down... and thought it might be located in the Phaser.Tileset object within the drawCoords array. But, that does not seem to the trick..? I've attached a few images below to illustrate what I mean. Edit: Just read that Phaser v. 2.7.5 might have this feature implemented. Will be trying in a few hours. I will get back with the results of that test in case others have similar issues in future. Tiled Mapeditor Tileset settings Within Tiled Mapeditor When the game has rendered In my Tiled JSON file I've got the following: { "columns":1, "firstgid":41, "image":"..\/sprites\/tree.gif", "imageheight":64, "imagewidth":64, "margin":0, "name":"tree", "spacing":0, "tilecount":1, "tileheight":64, "tileoffset": { "x":-32, "y":0 }, "tilewidth":64 } Any help or clarification is much appriciated. Best regards!
×
×
  • Create New...