feature request: sub families

Discussion and feedback on Construct 2

Post » Sat Nov 15, 2014 2:48 pm

Hi everybody,

I am quite new to to this forum and I am not sure if this is the right place here to ask for feature requests.
If so I am sorry and please move this post to the right place in the forum.

I am working on a quite ambitious project and would help me a greatly when Ashley could implement some sort of sub families.
I see families as some sort of objects in programming where the the family members inherit properties like "health", "damage", "move_speed" and behaviours like "platform" or "solid" like methods from their family.
But the problem I have is that currently you can have only one level of inheritance.

So I think it would be awesome to have some sort of sub families.

For example you could create an enemies family with instance variables (properties) "health" and "damage".
And under that family you have two more families.
One with the "Platform" behaviour for enemies that walk around and the other family with a "Bullet" behaviour for flying enemies.
And each sub family can have their own set of instance variables like "jump_strength" for the walkers and maybe "gravity" for the flyers.

I think with that you could greatly simplify the event sheet, because you would have way less duplicate code.

I hope this all makes sense and I don't come along as a fool :).

Thanks for listening.
B
4
S
1
Posts: 12
Reputation: 1,009

Post » Sun Nov 16, 2014 8:45 pm

I think this would be really, really useful.

Yes, there are workarounds, but subfamilies would help to make things easier and faster. It is not only about the things you can do with Construct, but also about how fast, intuitively and efficiently you can do them.
B
28
S
3
G
1
Posts: 29
Reputation: 1,698


Post » Mon Nov 17, 2014 4:29 pm

Yep. I think my request was done in 2012. But possibly under some form of improved inheritance..
B
90
S
18
G
9
Posts: 2,455
Reputation: 15,028

Post » Thu Nov 20, 2014 12:04 am

Hey @codah, thanks for all the links.
I think I will try that one object in multiple families concept to simulate sub families. To me it doesn't seem the be the most elegant way, but maybe it works.
B
4
S
1
Posts: 12
Reputation: 1,009


Return to Construct 2 General

Who is online

Users browsing this forum: No registered users and 20 guests