Any way of 'linking/grouping' sprites?

Discussion and feedback on Construct 2

Post » Fri Aug 19, 2011 10:08 pm

Hi, I'm new to construct 2 and currently working on a small project alongside my friend and we've been wondering if there is anyway to 'group' or link seperate sprites.
A specific example here is in a small game we are building in which enemies have their 'collision' model, and a second invisible sprite of a larger size which acts as their 'detection radius' and would follow the movement of the model itself.
Is there any of way of linking the two so that they would behave as a single instance of either type of sprite? (with regards to the effects of actions of events acting on them)

Any help would be much appreciated, and sorry if I've not explained it very clearly in the post
B
1
G
1
Posts: 2
Reputation: 429

Post » Sat Aug 20, 2011 2:16 pm

'Containers' in Classic is what you want - you can group together objects so they act as a composite object. However, the feature hasn't been added to C2 yet. It's on the todo list!

In the mean time, as long as there are equal numbers of objects, 'Set A position to B.X, B.Y' will pair up an A to every B.
Scirra Founder
B
359
S
214
G
72
Posts: 22,946
Reputation: 178,478

Post » Sat Aug 20, 2011 6:00 pm

Ah right, fair enough then- thanks anyway
Managed to find an alternative/work around for the idea we were trying to implement however (using something similar to what you suggest actually ) so that shouldn't be neccessary I don't think.
Also, really loving C2 at the moment- its great and so simple to use :D
B
1
G
1
Posts: 2
Reputation: 429

Post » Fri Aug 10, 2012 10:06 pm

Can you please share for the benefit of others, what kinds of workarounds can be used in place of "containers" or grouped sprites?
Moving Mazes - Action Puzzle game with a twist!
Play it now: http://www.cre80ve.com
B
15
S
3
G
1
Posts: 17
Reputation: 2,616


Return to Construct 2 General

Who is online

Users browsing this forum: saiyadjin and 2 guests