Sprites and scale

Get help using Construct 2

Post » Thu Jan 02, 2014 7:19 pm

Hi all,

I have three main items (a,b,c) in my layout. I need scale down and increment the distance among them, on every new stage that user start.
The thing is, each of these main items is conformed with 4 or 5 sprites ("a" has 4 sprites, "b" has 4 sprites, "c" has 5 sprites).

How can I scale these main items (a,b,c) without change relative distance on its sprites?

I'm coming from ActionScript, and in that case I can have "sprites of sprites" (sprites within other sprites) a then scale/move the "parent" sprite, works to solve this.

Is in C2 any kind of "sprite of sprites" ?

So, my initial approach was using distinct layers (one layer for each "a", "b", "c") and scale the layer, but I have many issues when scale the layers and with scroll.


Thanks in advance!

DS.
B
6
S
1
Posts: 2
Reputation: 331

Post » Thu Jan 02, 2014 7:26 pm

There is "Family"   I think you can stuff all your sprites under a family and scale the family.
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Thu Jan 02, 2014 7:27 pm

How have you "conformed" the sprites?
Are you using pin behaviour or set to imagepoint?
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jan 02, 2014 7:29 pm

@Lennaert, I think the scaling isn't the problem, the relative position of the sprites to eachother is, but there's no way to give a solution without knowing how the relative position is obtained in the first place.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775

Post » Thu Jan 02, 2014 7:32 pm

Yup..though, he can move/scale the family :) as he requests.

Onn the other hand, having it pinned might be the better option.

although, as a suggestion, he came from actionscript....

He might find "Spriter" and the spriter plugin a delight :)
Who dares wins
B
57
S
17
G
21
Posts: 1,878
Reputation: 19,572

Post » Thu Jan 02, 2014 8:08 pm

Thanks guys!

@lennaert: Ok, great, I'll try with "family" and take a look to "Spriter".
@LittleStain: I'dont use the pin behavior, maybe i'm confused but i understand the "pin", just fix de relative position (fix just on movement) but no apply to scale. please correct me if i'm wrong

DS
B
6
S
1
Posts: 2
Reputation: 331

Post » Thu Jan 02, 2014 8:14 pm

I'm not asking what you don't use, but what you do use?

if you are using pin behaviour or every tick set to imagepoint it should be no problem scaling all the sprites and keeping them in the right relative position to eachother.
I told my dentist I had trouble with my teeth and asked her to fix it without looking in my mouth..
B
54
S
16
G
8
Posts: 6,160
Reputation: 19,775


Return to How do I....?

Who is online

Users browsing this forum: No registered users and 23 guests