Z-ordering problem

0 favourites
  • 5 posts
  • Hi,

    Ashley

    Don't suppose It's a bug, so I'm posting it here.

    Just discover issue with object asjson and z-ordering. Basically here's the scenario:

    I have an object I want to "duplicate" . On clicking on it, its data is being stored asJson in webstorage, then same object is being spawned, and it is being set from Json string. But both are being given same z-ordering! This makes picking "top/bottom" impossible.

    Edit@ I've found a fix for that. But it's a really unnecessary hustle. In the future, could setting object from json automatically check if object with same z-ordering exists already, and if it does new z-order would be applied?

    [attachment=0:19lyttul][/attachment:19lyttul]

  • This seams right - from json point of view - because you are saving everything about this sprite and then load it up.

    But from editor point I would say it's a bug, Two objects can't have same Z value. After creating new object it should automatically assign next available Z value - even if you set Z from other source it should not set already existing Z value.

  • This seams right - from json point of view - because you are saving everything about this sprite and then load it up.

    But from editor point I would say it's a bug, Two objects can't have same Z value. After creating new object it should automatically assign next available Z value - even if you set Z from other source it should not set already existing Z value.

    ... As always - edited first post while you were writing XD haha!

  • haha I think I need to learn to wait couple of days before replaying to your posts xDD

    Gladly my replay still applies... this time anyway:D

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • haha I think I need to learn to wait couple of days before replaying to your posts xDD

    Gladly my replay still applies... this time anyway:D

    Yeah lol . but don't wait 2 days XD

Jump to:
Active Users
There are 1 visitors browsing this topic (0 users and 1 guests)