Comments (3)
UPDATE: it appears that I've forgot to subtract my TileID
variable by 1 like the half brain celled sack of flesh I am, the out of bounds exception is my fault π€‘
from tiledcs.
Hey @Frankfires
Concerning your issue with the type field. This works as intended. The type
field is empty I believe because its default is a rectangle. When you use a tile as object the type
field is empty too but the gid
field is set. And in case of a point, polygon or ellipse, the fields polygon
, point
and ellipse
are set respectively. To be honest I don't know for certain when it does get filled. But Tiled was designed this way so I just respect it. But when I talk to BjΓΆrn I will ask him if he could elaborate on it further.
As for the issue with the TiledTileset.Tiles
property, Tiled only saves tiles which contains data like animations or properties. So they only serve as a data container for a specific tile rather than the tile itself. This is how Tiled was designed and thus TiledCS only loads what it can find. I could fill up the array with tiles that were not defined in the tileset but than the whole array could become really big and I am not certain that is desirable for those with many tilesets.
I hope you understand and if you have questions, shoot!
With kind regards,
TheBoneJarmer
from tiledcs.
Aha I got it makes sense now ty! π
from tiledcs.
Related Issues (20)
- TiledMap.GetSourceRect does not consider tileset spacing
- No TiledLayer property corresponds to Image layers' Repeat X/Y values
- Add support for custom classes in custom properties
- Let's help other people figure out how to use your library with Monogame. HOT 3
- Add support for embedded tilesets HOT 1
- Thought/Feature Request - Create method to draw Tile Map with user passed in function HOT 3
- Missing opacity from TiledLayer HOT 2
- Incorrect index formula in readme HOT 2
- Cannot get tileoffset of a tileset HOT 2
- replace TiledProperty.type with enum HOT 3
- use dictionaries instead of arrays for properties HOT 1
- Issues retrieving parallax x/y factors from a TiledLayer HOT 12
- v3.3.0 unable to load map files? HOT 8
- Feature Request: Template Support HOT 2
- Flipped objects throw an OverflowException on ParseXml HOT 4
- Updated MonoGame example HOT 2
- Add support for TileSet.Spacing and TileSet.Margin HOT 1
- Unprotected main branch
- add support for tiled tile class property
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. πππ
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tiledcs.