GithubHelp home page GithubHelp logo

Comments (12)

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

Hey

Thanks for reporting! I will have a look at it.

With kind regards,
TheBoneJarmer

from tiledcs.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

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.

Frankfires avatar Frankfires commented on July 17, 2024

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 :)

image
image
image
image

from tiledcs.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

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.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

The new NuGet has been published in the meantime. The new version is 3.2.3.

from tiledcs.

Frankfires avatar Frankfires commented on July 17, 2024

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 )
image
image

from tiledcs.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

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.

Frankfires avatar Frankfires commented on July 17, 2024

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.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

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.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

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.

Frankfires avatar Frankfires commented on July 17, 2024

Yes, I am now able to retrieve parallax values from image layers, thanks for the fix :D

from tiledcs.

TheBoneJarmer avatar TheBoneJarmer commented on July 17, 2024

Awesome 😎

from tiledcs.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.