Comments (12)
Hey
Thanks for reporting! I will have a look at it.
With kind regards,
TheBoneJarmer
from tiledcs.
Hey
I just learned that I wrongly mapped the parallaxX and parallaxY attribute. Fucked that one up pretty good ghehe. Made a patch and hopefully within a few minutes the new NuGet package is available. :D
With kind regards,
TheBoneJarmer
from tiledcs.
The fix seems to be working slightly, I was able to retrieve the parallax factor from only one of my layers though, which was (2, 2). My layers with decimal factors don't seem to be working, and my layers with the default parallax factor of (1, 1) return (0, 0), I'm gonna assume this has something to do with the .tmx files not including parallax values for each layer if they are the default (1, 1), so maybe have TiledLayer.parallaxX/Y have a default of (1, 1) this way nobody has to multiply their parallax camera shenanigans by (0, 0). Appreciate ya taking the time to fix this :)
from tiledcs.
Oh fuck me haha, was not even aware of that. My apologies! And thank you for letting me know! You were correct about your assumption. The default is indeed 1,1 but is not saved until it gets changed. Well spotted. I will correct that and send a new patch on your way. :)
from tiledcs.
The new NuGet has been published in the meantime. The new version is 3.2.3.
from tiledcs.
Tile/object layers are working like charms, awesome appreciate you fixing this 👍
( I think you just need to touch up on image layers, still getting 0 from both parallax values :P )
from tiledcs.
Hey
Glad to hear!! And thanks for pointing that one out. I made some changes on develop just now that fixes that, added support for the class attribute on a layer (heck, never knew it was possible lol) and done rid of some warnings. I'm cool with releasing another patch but if you don't need this asap I'd rather wait till I got a bunch of stuff again. D:
With kind regards,
TheBoneJarmer
from tiledcs.
A quick patch would be greatly appreciated around now but I understand that releasing small tiny minimal patches with very little changes isn't ideal, your call.
from tiledcs.
Than I'll do it. I was not sure you meant you just noticed or that you actually needed it right now. But it seems the latter is the case. Hence I just pushed out a new release. I already got a notification from TeamCity that the build succeeded so within a couple of minutes the NuGet package should be available. :)
Mind you, it is not a patch this time but a minor release because I changed the property type string to an enum as requested by someone else. You might need to change that as well.
from tiledcs.
Hey @Frankfires
Just to be certain, you mentioned things work flawlessly in the other issue. Does that mean this one is solved for you as well?
With kind regards,
TheBoneJarmer
from tiledcs.
Yes, I am now able to retrieve parallax values from image layers, thanks for the fix :D
from tiledcs.
Awesome 😎
from tiledcs.
Related Issues (20)
- 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
- v3.3.0 unable to load map files? HOT 8
- Issues with objects that belong to tiles HOT 3
- 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
- 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
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.