[Suggestion] add scale parameter

Discussion and feedback on Construct 2

Post » Thu May 09, 2013 2:46 pm

It would be nice to have the ability to pull the scale parameter of one object to another.

For example:

-Create two sprites, sprite1 and sprite2
-Set sprite1's scale to 1.5
-Set sprite2's scale to the first sprite1's scale.

This is currently impossible. Am using 128.2

The workaround is to just create a variable, but would be great to target specific objects.



B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Thu May 09, 2013 3:17 pm

It's already totally possible, as You said, I would not consider using a variable a "workaround"...Pixel perfick2013-05-09 15:18:38
As long as I can move left, right and fire, I'm Happy...
B
42
S
15
G
11
Posts: 655
Reputation: 12,260

Post » Thu May 09, 2013 3:24 pm

There's no expression to SpriteA set scale to SpriteB
but if you set SpriteA set size to SpriteB.width and SpriteB.Height it will work
ImageImageImageImage
B
140
S
58
G
36
Posts: 2,547
Reputation: 31,170

Post » Thu May 09, 2013 3:27 pm

Well, while we can check for object.opacity,width,heigth,uid,animationframe, etc, I'm surprised there isn't one for scale.

It would be very useful.

B
31
S
6
G
4
Posts: 160
Reputation: 5,998

Post » Thu May 09, 2013 6:36 pm

Objects don't have a single scale. If an object is twice as wide but half as tall, what's its scale?

You can already retrieve the scale for each axis individually using the originalwidth/height expressions.
Scirra Founder
B
359
S
214
G
72
Posts: 22,952
Reputation: 178,580


Return to Construct 2 General

Who is online

Users browsing this forum: Colludium and 2 guests