RealDeal's Recent Forum Activity

  • Paste Clone is what I was looking for! All right!

  • Is there a way I can duplicate one object into a second object, which I can then tweak the variables without changing the variables of the first object?

    For example, you want to make a Tennis Ball object, a a Basketball object, and a Golf Ball object. Really, these objects all behave mostly the same except that they have different dimensions and mass.

    I tried creating a Ball family and setting the common Ball behavior inside 'Manage families', but it only seems to let me remove any common behaviors the balls have, not add or adjust existing behaviors.

    Is there maybe a way I can write the (Common, Effects, Behaviors, Groups, etc) for objects in a text file and then have Construct read in that file and create the objects within the layout? This way, making a brand new object from an existing one would be as easy as copying/pasting sections of the text file.

    Thank you!

  • Try Construct 3

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

    Try Now Construct 3 users don't see these ads
  • You are correct, I was looking for inheritance. I can make my game without it but I didn't know if Construct had inheritance and I was overlooking it.

    Thanks! I will post the bug to the tracker.

  • I'd like to make object sub-types, but I'm afraid I don't see how.

    For example, pretend that you want to make a Family named 'Human Being'. All human beings have some common private variables (eye color, height/weight, a first name, etc) and behaviors (breathe oxygen, eat food).

    Furthermore, we could say that there are two sub-families of human being - male and female. All males share certain traits and same for the females. Furthermore, there are sub-families of males and females (Korean, Russian, African...) that have certain traits and behaviors in common. I think you can see what I mean.

    My end goal is to have NPCs that are unique but I don't want to have to re-write the same private variables and behaviors over and over again for every single NPC. I'd like to just say "Here is a human being, male, Canadian, caucasian, firefighter, named Joe" and then Joe would automatically inherit all of the variables and behaviors common to human beings, males, Canadians, caucasians, and firefighters. Then, I'd only need to tweak the few remaining details that are specific to Joe and not shared by any of the rest of the human male Canadian caucasian firefighters.

    It almost seems like Construct allows you to place families within families like this, except that it causes the application to crash every time I attempt it. Is there another way to do what I am trying to do?

    Thank you.

RealDeal's avatar

RealDeal

Member since 15 Jan, 2009

None one is following RealDeal yet!

Trophy Case

  • 15-Year Club

Progress

15/44
How to earn trophies