feature request: layer offset

Discussion and feedback on Construct 2

Post » Sun May 31, 2015 2:23 am

My question isn't if these things should be done in a game, it's if they should be added to a game engine that's already bloated.
Truth is the user can already do these things as is.
Layers, just like groups, families, etc are a way to manage objects, albeit ways that do different things, rotation for example, isn't done with families, but it could be.
With that in mind, using a layer to move a group of objects around, at least to me, seems like it should set off some warning flags.
One of them saying "could this not be done another way?".
A behavior perhaps?

Also, I think there needs to be some discussion as to what parts of this are actually related to the camera, rather than the objects positions.
Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Sun May 31, 2015 11:48 am

@sqiddster - families in families is the same as simply adding both families to one object type, so I don't think there needs to be a new feature for that. I'm not sure families with different plugin types is even possible, because the whole point of families is so you can write your events once. If you go to add an action for a family with both the Sprite and AJAX plugins in it, which actions do you show? What if you run an AJAX action on a Sprite instance or vice versa? etc...

As for the other use cases, I think the complexity problems I outlined with layer offsets means that it would be better to find a different way of solving those problems, without having to offset layers.
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448

Post » Sun May 31, 2015 2:56 pm

Ashley wrote:If you go to add an action for a family with both the Sprite and AJAX plugins in it, which actions do you show? What if you run an AJAX action on a Sprite instance or vice versa? etc...

you only show the actions they have in common!
B
38
S
11
G
5
Posts: 485
Reputation: 5,340

Post » Sun May 31, 2015 5:41 pm

@fldr - between something like AJAX and Sprite, I think that is pretty much no actions at all, making the family pretty useless!
Scirra Founder
B
397
S
236
G
88
Posts: 24,389
Reputation: 194,448

Post » Sun May 31, 2015 6:26 pm

^ The ajax plugin isn't even a 'world' type plugin...
B
11
S
2
G
1
Posts: 202
Reputation: 1,580

Post » Sun May 31, 2015 7:28 pm

this would be actually best done in a group functionality, if you see a group as positional nullobject
you could see it as a "layer" and offset however you want, it can be everywhere, can have multiple families in it
you can add and remove things from it, a group is a parent of all children that are in it works on sprites, you can destroy groups, ...
move and rotate would update the world position of all sprites in it

maybe you could add additional events to groups that can work on multiple families
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Sun May 31, 2015 8:03 pm

Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Sun May 31, 2015 8:10 pm

@newt are you saying we should call it gang instead of groups ? then i agree, its indeed all thesame rapped into another name, but naming things is a big part of programming dont you know that :)


what can a gang do that a family can't, thinking on that one
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

Post » Sun May 31, 2015 8:27 pm

Well you can be a member of several gangs.
I would say that can be a bit dangerous however.
Image ImageImage
B
169
S
50
G
173
Posts: 8,313
Reputation: 110,270

Post » Sun May 31, 2015 8:33 pm

i were still talking about construct, then you can be a member of multiple families too

maybe, two families are members of the west side "group/gang" and are moving both to eastside, while one family has guns and the other on has bats

or one is with cars and the other one on foot but both go in the same direction
Last edited by vtrix on Sun May 31, 2015 8:39 pm, edited 1 time in total.
ImageImage
B
70
S
21
G
7
Posts: 827
Reputation: 10,052

PreviousNext

Return to Construct 2 General

Who is online

Users browsing this forum: a guy, MadSpy, Nizzara and 12 guests