Component adds billboard to sprite.
I have an idea of what I'm looking for in the end not the easiest way to do it. I am making a side scroller. While I am laying out the levels I forget which environment pieces are destructible. With my setup I can drag any sprite into the level and add a "health component" to the sprite. It is then destructible.
What I would like to do is when I add the " health component" to the sprite I get some kind of visual indicator telling me at a glance that that sprite has a health component. So when I'm looking over the level from a far I know which pieces can be destroyed. My first thought was the health component adds a billboard with a specific icon in front of the sprite, or maybe a text renderer with the word "Destructible". I just don't know how to have a component add another component but also know if I remove the original component.
I'm trying to make this as automatic as possible so when I eventually farm out level design the LD will have it as easy as possible. I'm also open to suggestions, something that would be easy to implement in c++.
asked Sep 18 '18 at 01:00 AM in C++ Programming
Just have the Destructible text on the health compintent and mark the component class as Hidden In Game. Then it will not show the Destructible label during gameplay just only when you are editing the level. No logic required.
answered Nov 28 '18 at 01:32 AM
Follow this question
Once you sign in you will be able to subscribe for any updates here