Coder Social home page Coder Social logo

Comments (7)

PhaserEditor2D avatar PhaserEditor2D commented on June 2, 2024

Hi, you can create a user component with additional user properties and add it to any game object in the scene.

https://help-v3.phasereditor2d.com/scene-editor/user-components.html#

from phasereditor2d-v3.

JernejHabjan avatar JernejHabjan commented on June 2, 2024

@PhaserEditor2D creating custom component is not what i want, because I want to specify numeric value (0-255) for z axis, which differs from sprite to sprite.
As all gameObjects have this property already, id just want to see it in Phaser editor.

from phasereditor2d-v3.

PhaserEditor2D avatar PhaserEditor2D commented on June 2, 2024

Hi @JernejHabjan

So you don't need a custom/user property, what you need is to add the Z property to the editor. It means, a new feature in the editor.

from phasereditor2d-v3.

JernejHabjan avatar JernejHabjan commented on June 2, 2024

@PhaserEditor2D that's right. But I presume that most users won't need to see Z property in the panel. Could we have a button to "add" a property and it's value?

from phasereditor2d-v3.

PhaserEditor2D avatar PhaserEditor2D commented on June 2, 2024

Could we have a button to "add" a property and it's value?

Mmm... I don't know I have to think more about it. We have a button to add a user component :)

Btw, why do you need the Z property? What kind of stuff you are making? Maybe it is part of a bigger feature that I plan to implement.

from phasereditor2d-v3.

JernejHabjan avatar JernejHabjan commented on June 2, 2024

I'd like to use Z axis to specify at which height the block / sprite is placed in isometric world, as I'd like to create multi-height isometric world.

image

currently I'm writing this Z in custom prefab exposed property, but ideally I'd like to set it to Gameobject.Image as it's just terrain

from phasereditor2d-v3.

PhaserEditor2D avatar PhaserEditor2D commented on June 2, 2024

Oh yes, I have to do more about isometrics. Like a sorting layer. It will help in the case of isometrics and also other kind of worlds.

from phasereditor2d-v3.

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.